Disable users on items for now
This commit is contained in:
@@ -24,8 +24,8 @@ public record GetTodoByIdQuery([Required] string TodoId) : IRequest<TodoViewMode
|
||||
var userId = _currentUserService.GetUserId();
|
||||
var todo = await _todoRepository.GetTodoByIdAsync(request.TodoId);
|
||||
|
||||
if (todo.AuthorId != userId)
|
||||
throw new InvalidOperationException("User is not allowed to access todo");
|
||||
//if (todo.AuthorId != userId)
|
||||
// throw new InvalidOperationException("User is not allowed to access todo");
|
||||
|
||||
return TodoViewModel.From(todo);
|
||||
}
|
||||
|
Reference in New Issue
Block a user