Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Lelievre-david committed Dec 17, 2024
1 parent b97a34d commit 9ed8a3a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/v1/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def destroy
user = policy_scope(User).kept.find(params[:id])
authorize user

if current_user.discard
if user.discard
head :no_content
else
render_validation_error(user)
Expand Down
Binary file modified erd.pdf
Binary file not shown.

0 comments on commit 9ed8a3a

Please sign in to comment.