app/soc/views/helper/access.py
changeset 1444 b97cfeb423f4
parent 1443 8ce8314d1c8f
child 1445 c2e09f7d62d9
--- a/app/soc/views/helper/access.py	Sat Feb 21 20:15:23 2009 +0000
+++ b/app/soc/views/helper/access.py	Sat Feb 21 20:15:56 2009 +0000
@@ -217,10 +217,10 @@
     'anyone': 'allow',
     'club_admin': ('checkHasActiveRoleForScope', club_admin_logic),
     'club_member': ('checkHasActiveRoleForScope', club_member_logic),
-    'host': ('checkHasActiveRoleForScope', host_logic),
-    'org_admin': ('checkHasActiveRoleForScope', org_admin_logic),
-    'org_mentor': ('checkHasActiveRoleForScope', mentor_logic),
-    'org_student': 'deny', #('checkHasActiveRoleForScope', student_logic),
+    'host': ('checkHasDocumentAccess', [host_logic, 'sponsor']),
+    'org_admin': ('checkHasDocumentAccess', [org_admin_logic, 'org']),
+    'org_mentor': ('checkHasDocumentAccess', [mentor_logic, 'org']),
+    'org_student': ('checkHasDocumentAccess', [student_logic, 'org']),
     'user': 'checkIsUser',
     'user_self': ('checkIsUserSelf', 'scope_path'),
     }