From ee5e4bd29c3a1a80ab2d804f9a42d7f709f92141 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Mon, 19 Aug 2024 20:08:48 -0400 Subject: [PATCH] User.can_terminate_account: edits a comment #943 --- askbot/models/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/askbot/models/__init__.py b/askbot/models/__init__.py index 4ac10ce511..22e45b2d90 100644 --- a/askbot/models/__init__.py +++ b/askbot/models/__init__.py @@ -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