From d3ce284d300cb00179064063cb94fb250bdfa6c3 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 7 Jul 2010 15:48:01 +0200 Subject: dummy permissions implementation --- coip/apps/auth/authz.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 coip/apps/auth/authz.py 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 -- cgit v1.1