Package expedient :: Package common :: Package permissions :: Module backend :: Class ExpedientPermissionsBackend
[hide private]
[frames] | no frames]

Class ExpedientPermissionsBackend

source code


Django backend for object permissions. Needs Django 1.2.

Use it together with the default ModelBackend like so:

   AUTHENTICATION_BACKENDS = (
       'django.contrib.auth.backends.ModelBackend',
       'expedient.common.permissions.backend.ExpedientPermissionsBackend',
   )
Instance Methods [hide private]
 
has_perm(self, user_obj, perm, obj=None)
Checks whether the passed user has passed permission for passed object (obj).
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  supports_object_permissions = True
  supports_anonymous_user = False
Properties [hide private]

Inherited from object: __class__