Mercurial > p > roundup > code
diff doc/customizing.txt @ 6534:7cfb7d4fce60
Fix docs mising Search permission for example.
The
All users may only view and edit issues, files and messages they create
example was missing the addition of Search permission. The example
predates the existence of the Search permission.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 24 Nov 2021 10:04:10 -0500 |
| parents | 60532cafc62a |
| children | 47b4391e1503 |
line wrap: on
line diff
--- a/doc/customizing.txt Wed Nov 17 00:16:30 2021 -0500 +++ b/doc/customizing.txt Wed Nov 24 10:04:10 2021 -0500 @@ -5786,12 +5786,19 @@ return check for cl in 'issue', 'file', 'msg': p = db.security.addPermission(name='View', klass=cl, - check=checker(cl)) + check=checker(cl), + description='User can view only if creator.') db.security.addPermissionToRole('User', p) p = db.security.addPermission(name='Edit', klass=cl, - check=checker(cl)) + check=checker(cl), + description='User can edit only if creator.') db.security.addPermissionToRole('User', p) db.security.addPermissionToRole('User', 'Create', cl) + # This allows the interface to get the names of the properties + # in the issue. Used for selecting sorting and grouping + # on the index page. + p = db.security.addPermission(name='Search', klass='issue') + db.security.addPermissionToRole ('User', p) Moderating user registration
