Skip to content

Commit

Permalink
User.can_terminate_account: edits a comment #943
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyfadeev committed Aug 20, 2024
1 parent 04e1d25 commit ee5e4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion askbot/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ def user_can_terminate_account(self, user):
return False
return perm == 'users'

# non-admins with terminate_accounts role cannot remove admins or moderators
# non-admins cannot remove admins or moderators
if not self.is_administrator() and user.is_administrator_or_moderator():
return False

Expand Down

0 comments on commit ee5e4bd

Please sign in to comment.