Permalink
Browse files

Removed AuthenticationBackend.has_perm

The AuthenticationBackend shouldn't need to worry about this any longer. A
project with wakawaka should handle its permission on their own. This was
added to maintain backwards compatability when we used wakawaka in core Pinax.
  • Loading branch information...
1 parent d066744 commit 1d0198e0dd5c21121769471b7484f754bf02c183 @brosner brosner committed Jan 27, 2012
Showing with 0 additions and 12 deletions.
  1. +0 −12 pinax/apps/account/auth_backends.py
@@ -22,18 +22,6 @@ def authenticate(self, **credentials):
else:
if user.check_password(credentials["password"]):
return user
-
- def has_perm(self, user, perm):
- # @@@ allow all users to add wiki pages
- wakawaka_perms = [
- "wakawaka.add_wikipage",
- "wakawaka.add_revision",
- "wakawaka.change_wikipage",
- "wakawaka.change_revision"
- ]
- if perm in wakawaka_perms:
- return True
- return super(AuthenticationBackend, self).has_perm(user, perm)
EmailModelBackend = AuthenticationBackend

0 comments on commit 1d0198e

Please sign in to comment.