diff options
Diffstat (limited to 'coip')
-rw-r--r-- | coip/apps/auth/authz.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/coip/apps/auth/authz.py b/coip/apps/auth/authz.py new file mode 100644 index 0000000..b5f3bd5 --- /dev/null +++ b/coip/apps/auth/authz.py @@ -0,0 +1,16 @@ +''' +Created on Jul 7, 2010 + +@author: leifj +''' +from coip.apps.name.models import Name + +#TODO implement acls +def has_permission_name(user,name,perm): + return True + +def has_permission(user, object, perm): + if type(object) == Name: + return has_permission_name(user,object,perm) + + return False;
\ No newline at end of file |