summaryrefslogtreecommitdiff
path: root/coip/apps/auth/authz.py
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2010-07-07 15:48:01 +0200
committerLeif Johansson <leifj@sunet.se>2010-07-07 15:48:01 +0200
commitd3ce284d300cb00179064063cb94fb250bdfa6c3 (patch)
tree5ba224b0d13ba1ce0084f97c04c058b1e6b06b40 /coip/apps/auth/authz.py
parent7921132788e55c0714af8b33ed2105ff6a1dba54 (diff)
dummy permissions implementation
Diffstat (limited to 'coip/apps/auth/authz.py')
-rw-r--r--coip/apps/auth/authz.py16
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