--- 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