Skip to content

Commit

Permalink
Refactor based on PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
stage-rl committed Dec 3, 2023
1 parent 24d8bf4 commit 4cc123a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/policies/admin/user_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def edit?

def destroy?
return false unless @actor.site_admin? || @actor.admin?
return true unless @user_to_authorize != @actor
return false if @user_to_authorize == @actor

false
true
end
end

0 comments on commit 4cc123a

Please sign in to comment.