Browse Source

Fixed bug in Auth #268

Rafał Pitoń 11 years ago
parent
commit
e79bf7b762
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misago/auth.py

+ 1 - 1
misago/auth.py

@@ -108,7 +108,7 @@ def auth_admin(request, email, password):
     Admin auth - check ACP permissions
     """
     user = get_user(email, password, True)
-    if not user.is_god() and not user.acl().special.is_admin():
+    if not user.is_god() and not user.acl().acp.is_admin():
         raise AuthException(NOT_ADMIN, _("Your account does not have admin privileges."))
     return user;