diff roundup/security.py @ 5127:425b4c4fc345

issue2550831: Make the classic template query.edit page work. More edits: 1) Admin was unable to restore a deleted query but could retire it. Add 'restore' security permission to admin in security.py. This seems like it should be a standard perm. 2) If a search you had in your "Your Queries" list was made private to somebody else, you lost the ability to drop it from your list. Modified the query.edit.html so that re-private and retired queries are listed at the bottom and you can uninstall them. Ideally a re-privated query should just dissapear from your listing. issue2550915 opened to track this.
author John Rouillard <rouilj@ieee.org>
date Sun, 03 Jul 2016 22:50:53 -0400
parents 87b0358790ed
children 4058fc1ec746
line wrap: on
line diff
--- a/roundup/security.py	Sun Jul 03 21:21:29 2016 -0400
+++ b/roundup/security.py	Sun Jul 03 22:50:53 2016 -0400
@@ -126,7 +126,7 @@
         self.addRole(name="Anonymous", description="An anonymous user")
 
         # default permissions - Admin may do anything
-        for p in 'create edit retire view'.split():
+        for p in 'create edit restore retire view'.split():
             p = self.addPermission(name=p.title(),
                 description="User may %s everything"%p)
             self.addPermissionToRole('Admin', p)

Roundup Issue Tracker: http://roundup-tracker.org/