Fixes a bug where notifications can't be deleted.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/views/models/notification.py Tue Feb 03 08:33:46 2009 +0000
+++ b/app/soc/views/models/notification.py Tue Feb 03 08:36:05 2009 +0000
@@ -86,7 +86,7 @@
rights['unspecified'] = ['deny']
rights['edit'] = ['deny']
rights['show'] = [('checkIsMyEntity', [notification_logic, 'scope_path'])]
- rights['delete'] = [('checkIsMyEntity', notification_logic)]
+ rights['delete'] = [('checkIsMyEntity', [notification_logic, 'scope_path'])]
rights['list'] = ['checkIsUser']
# create is developer only for the time being to test functionality
rights['create'] = ['checkIsDeveloper']