Commits

Anonymous committed 381291f

Users need to be able to retire their queries for delete to work.

Patch by Ezio Melotti.

Comments (0)

Files changed (1)

     description="User is allowed to create queries")
 for r in 'User', 'Developer', 'Coordinator':
     db.security.addPermissionToRole(r, p)
+p = db.security.addPermission(name='Retire', klass='query', check=edit_query,
+    description="User is allowed to retire their queries")
+for r in 'User', 'Developer', 'Coordinator':
+    db.security.addPermissionToRole(r, p)
 
 
 #