Browse Source

Fix allow_lift_ban permission

rafalp 6 years ago
parent
commit
593a0fd1e0
1 changed files with 1 additions and 2 deletions
  1. 1 2
      misago/users/permissions/moderation.py

+ 1 - 2
misago/users/permissions/moderation.py

@@ -170,8 +170,7 @@ can_ban_user = return_boolean(allow_ban_user)
 def allow_lift_ban(user_acl, target):
     if not user_acl['can_lift_bans']:
         raise PermissionDenied(_("You can't lift bans."))
-    # FIXME: this will require cache version delegation
-    ban = get_user_ban(target, user_ac["cache_versions"])
+    ban = get_user_ban(target, user_acl["cache_versions"])
     if not ban:
         raise PermissionDenied(_("This user is not banned."))
     if user_acl['max_lifted_ban_length']: