Browse Source

Don't display destroying form for guests role.

Rafał Pitoń 11 years ago
parent
commit
b1e031a0d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misago/users/permissions/destroying.py

+ 1 - 1
misago/users/permissions/destroying.py

@@ -22,7 +22,7 @@ class PermissionsForm(forms.Form):
 
 
 def change_permissions_form(role):
-    if role.__class__ == Role:
+    if role.__class__ == Role and role.special_role != 'anonymous':
         return PermissionsForm
     else:
         return None