1. Robot Mirror
  2. bugs.python.org

Commits

bitdancer  committed 381291f

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

Patch by Ezio Melotti.

  • Participants
  • Parent commits 8705773
  • Branches default

Comments (0)

Files changed (1)

File schema.py

View file
     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)
 
 
 #