Mercurial > p > roundup > code
comparison doc/customizing.txt @ 5529:0dea3d6944c5
'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 | df3f553fa414 |
| children | 2692a1c48484 |
comparison
equal
deleted
inserted
replaced
| 5528:bb364082a14a | 5529:0dea3d6944c5 |
|---|---|
| 5045 check=own_issue, description='Can only edit own issues') | 5045 check=own_issue, description='Can only edit own issues') |
| 5046 db.security.addPermissionToRole('Provisional User', p) | 5046 db.security.addPermissionToRole('Provisional User', p) |
| 5047 p = db.security.addPermission(name='View', klass='issue', | 5047 p = db.security.addPermission(name='View', klass='issue', |
| 5048 check=own_issue, description='Can only view own issues') | 5048 check=own_issue, description='Can only view own issues') |
| 5049 db.security.addPermissionToRole('Provisional User', p) | 5049 db.security.addPermissionToRole('Provisional User', p) |
| 5050 # This allows the interface to get the names of the properties | |
| 5051 # in the issue. Used for selecting sorting and grouping | |
| 5052 # on the index page. | |
| 5053 p = db.security.addPermission(name='Search', klass='issue') | |
| 5054 db.security.addPermissionToRole ('Provisional User', p) | |
| 5055 | |
| 5050 | 5056 |
| 5051 # Assign the Permissions for issue-related classes | 5057 # Assign the Permissions for issue-related classes |
| 5052 for cl in 'file', 'msg', 'query', 'keyword': | 5058 for cl in 'file', 'msg', 'query', 'keyword': |
| 5053 db.security.addPermissionToRole('Provisional User', 'View', cl) | 5059 db.security.addPermissionToRole('Provisional User', 'View', cl) |
| 5054 db.security.addPermissionToRole('Provisional User', 'Edit', cl) | 5060 db.security.addPermissionToRole('Provisional User', 'Edit', cl) |
