Fixes a bug where notifications can't be deleted.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 03 Feb 2009 08:36:05 +0000
changeset 1197 7785b5091f07
parent 1196 11dbdf12d7c2
child 1198 3318f8d00691
Fixes a bug where notifications can't be deleted. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/models/notification.py
--- 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']