Skip to content

Commit dd7e022

Browse files
committed
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.
1 parent a68bb72 commit dd7e022

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

doc/customizing.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5786,12 +5786,19 @@ for the "issue", "file" and "msg" classes with the following::
57865786
return check
57875787
for cl in 'issue', 'file', 'msg':
57885788
p = db.security.addPermission(name='View', klass=cl,
5789-
check=checker(cl))
5789+
check=checker(cl),
5790+
description='User can view only if creator.')
57905791
db.security.addPermissionToRole('User', p)
57915792
p = db.security.addPermission(name='Edit', klass=cl,
5792-
check=checker(cl))
5793+
check=checker(cl),
5794+
description='User can edit only if creator.')
57935795
db.security.addPermissionToRole('User', p)
57945796
db.security.addPermissionToRole('User', 'Create', cl)
5797+
# This allows the interface to get the names of the properties
5798+
# in the issue. Used for selecting sorting and grouping
5799+
# on the index page.
5800+
p = db.security.addPermission(name='Search', klass='issue')
5801+
db.security.addPermissionToRole ('User', p)
57955802

57965803

57975804
Moderating user registration

0 commit comments

Comments
 (0)