web/ldt/auth/__init__.py
changeset 1 3a30d255c235
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/ldt/auth/__init__.py	Sun Nov 14 20:25:22 2010 +0100
@@ -0,0 +1,7 @@
+
+def checkAccess(user, obj):
+    check_meth = getattr(obj, 'checkAccess', False)
+    if check_meth:
+        return check_meth(user)
+    else:
+        return user.is_staff
\ No newline at end of file