Commit 93e87be5 authored by HERBERT Ryan's avatar HERBERT Ryan

controllers/notification.py edited messages lose their 'read' statuses so...

controllers/notification.py edited messages lose their 'read' statuses so modifications are brought to the attention of all
parent 6f7d0881
......@@ -98,7 +98,6 @@ def edit():
# process submitted edit form
def edit_form():
#TODO delete parameters associated (would enable reusing messages)
if (not auth.is_admin()):
res = {"message": ACCESS_DENIED}
log.error(res)
......@@ -124,6 +123,9 @@ def edit_form():
priority=request.vars["priority"],
expiration=request.vars["expiration"])
db((db.user_preference.val==request.vars['id'])
&(db.user_preference.preference=='mail')).delete()
res = {"redirect": "notification/index",
"args" : { "id" : request.vars['id'] },
"message": "notification updated"}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment