app/soc/views/models/club.py
changeset 1007 3b66772d21a5
parent 1006 6abf12b9e646
child 1010 aeed003f50c5
--- a/app/soc/views/models/club.py	Mon Jan 26 21:22:53 2009 +0000
+++ b/app/soc/views/models/club.py	Mon Jan 26 23:32:10 2009 +0000
@@ -58,16 +58,16 @@
       params: a dict with params for this View
     """
 
-    rights = {}
-    rights['create'] = [access.checkIsDeveloper]
-    rights['edit'] = [access.checkIsClubAdminForClub]
-    rights['delete'] = [access.checkIsDeveloper]
-    rights['home'] = [access.allow]
-    rights['list'] = [access.checkIsDeveloper]
-    rights['apply_member'] = [access.checkAgreesToSiteToS]
-    rights['list_requests'] = [access.checkIsClubAdminForClub]
-    rights['list_roles'] = [access.checkIsClubAdminForClub]
-    rights['applicant'] = [access.checkIsApplicationAccepted(club_app_logic)]
+    rights = access.Checker(params)
+    rights['create'] = ['checkIsDeveloper']
+    rights['edit'] = ['checkIsClubAdminForClub']
+    rights['delete'] = ['checkIsDeveloper']
+    rights['home'] = ['allow']
+    rights['list'] = ['checkIsDeveloper']
+    rights['apply_member'] = ['checkAgreesToSiteToS']
+    rights['list_requests'] = ['checkIsClubAdminForClub']
+    rights['list_roles'] = ['checkIsClubAdminForClub']
+    rights['applicant'] = [('checkIsApplicationAccepted', club_app_logic)]
 
     new_params = {}
     new_params['logic'] = soc.logic.models.club.logic