old_contents: from pinax.apps.account import auth_backends
  
  import privileges
  
  
  class AuthenticationBackend(auth_backends.AuthenticationBackend):
      supports_object_permissions = False
      supports_anonymous_user = True
      
      def has_perm(self, user, perm):
          if user.is_anonymous():
              return False
          
          if privileges.has_privilege(user, perm):
              return True
          
          return super(AuthenticationBackend, self).has_perm(user, perm)
  
new_contents: from privileges.registration import registry
  
  
  class PrivilegesBackend(object):
      
      def has_perm(self, user_obj, perm, obj=None):
          if user_obj.is_anonymous():
              return False
          
          if registry.has_privilege(user_obj, perm):
              return True
          
          return super(PrivilegesBackend, self).has_perm(user_obj, perm)
  
subject: Remove requirement on pinax.apps.account