app/soc/views/models/notification.py
changeset 1007 3b66772d21a5
parent 986 e9611a2288ca
child 1012 73f0b61f2d9d
--- a/app/soc/views/models/notification.py	Mon Jan 26 21:22:53 2009 +0000
+++ b/app/soc/views/models/notification.py	Mon Jan 26 23:32:10 2009 +0000
@@ -82,14 +82,14 @@
       params: a dict with params for this View
     """
 
-    rights = {}
-    rights['unspecified'] = [access.deny]
-    rights['edit'] = [access.deny]
-    rights['show'] = [access.checkIsMyNotification]
-    rights['delete'] = [access.checkIsMyNotification]
-    rights['list'] = [access.checkAgreesToSiteToS]
+    rights = access.Checker(params)
+    rights['unspecified'] = ['deny']
+    rights['edit'] = ['deny']
+    rights['show'] = ['checkIsMyNotification']
+    rights['delete'] = ['checkIsMyNotification']
+    rights['list'] = ['checkAgreesToSiteToS']
     # create is developer only for the time being to test functionality
-    rights['create'] = [access.checkIsDeveloper]
+    rights['create'] = ['checkIsDeveloper']
 
     new_params = {}
     new_params['logic'] = notification_logic.logic