Mercurial > p > roundup > code
comparison doc/customizing.txt @ 5537:d698d3d843a9 maint-1.6
'Provisional User' example needed to have search permissions added
otherwise the sort and group dropdowns were not populated with the
names of the properties of the issue.
See the thread titled "access control rule for Sort and Group
function" by austin.wangxu ending with:
https://sourceforge.net/p/roundup/mailman/message/36408780/
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 06 Sep 2018 17:04:49 -0400 |
| parents | 86b297a3d261 |
| children | 2692a1c48484 |
comparison
equal
deleted
inserted
replaced
| 5536:ef46e188bb5b | 5537:d698d3d843a9 |
|---|---|
| 5048 check=own_issue, description='Can only edit own issues') | 5048 check=own_issue, description='Can only edit own issues') |
| 5049 db.security.addPermissionToRole('Provisional User', p) | 5049 db.security.addPermissionToRole('Provisional User', p) |
| 5050 p = db.security.addPermission(name='View', klass='issue', | 5050 p = db.security.addPermission(name='View', klass='issue', |
| 5051 check=own_issue, description='Can only view own issues') | 5051 check=own_issue, description='Can only view own issues') |
| 5052 db.security.addPermissionToRole('Provisional User', p) | 5052 db.security.addPermissionToRole('Provisional User', p) |
| 5053 # This allows the interface to get the names of the properties | |
| 5054 # in the issue. Used for selecting sorting and grouping | |
| 5055 # on the index page. | |
| 5056 p = db.security.addPermission(name='Search', klass='issue') | |
| 5057 db.security.addPermissionToRole ('Provisional User', p) | |
| 5058 | |
| 5053 | 5059 |
| 5054 # Assign the Permissions for issue-related classes | 5060 # Assign the Permissions for issue-related classes |
| 5055 for cl in 'file', 'msg', 'query', 'keyword': | 5061 for cl in 'file', 'msg', 'query', 'keyword': |
| 5056 db.security.addPermissionToRole('Provisional User', 'View', cl) | 5062 db.security.addPermissionToRole('Provisional User', 'View', cl) |
| 5057 db.security.addPermissionToRole('Provisional User', 'Edit', cl) | 5063 db.security.addPermissionToRole('Provisional User', 'Edit', cl) |
