File diff ac57053ecf58 → 252697b842c0
vendor/symposion/teams/backends.py
Show inline comments
...
 
@@ -5,7 +5,7 @@ from .models import Team
 

	
 
class TeamPermissionsBackend(object):
 

	
 
    def authenticate(self, username=None, password=None):
 
    def authenticate(self, request, username=None, password=None):
 
        return None
 

	
 
    def get_team_permissions(self, user_obj, obj=None):
...
 
@@ -13,7 +13,7 @@ class TeamPermissionsBackend(object):
 
        Returns a set of permission strings that this user has through his/her
 
        team memberships.
 
        """
 
        if user_obj.is_anonymous() or obj is not None:
 
        if user_obj.is_anonymous or obj is not None:
 
            return set()
 
        if not hasattr(user_obj, "_team_perm_cache"):
 
            # Member permissions