Skip to content

Commit

Permalink
Remove redundant condition from users controller update
Browse files Browse the repository at this point in the history
This is already checked in the pundit policy. No need to do this twice.
  • Loading branch information
krauselukas committed Feb 27, 2024
1 parent 8501579 commit 1044d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/controllers/webui/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def update
else
authorize [:webui, @displayed_user], :update?

assign_common_user_attributes if @configuration.accounts_editable?(@displayed_user)
assign_common_user_attributes
assign_admin_attributes if User.admin_session?
end

Expand Down

0 comments on commit 1044d38

Please sign in to comment.