Skip to content

Commit daa4286

Browse files
committed
doc: document Search permission ignores a check clause.
Also update formating and add a couple of missing User permisions to list for classic tracker. There are more missing.
1 parent 9117938 commit daa4286

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

doc/reference.txt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,8 +1286,10 @@ For the "User" Role, the "classic" tracker defines:
12861286

12871287
- Create, Edit and View issue, file, msg, query, keyword
12881288
- View priority, status
1289-
- View user
1289+
- View user (limited properties)
1290+
- View their own user record
12901291
- Edit their own user record
1292+
- Search queries
12911293

12921294
And the "Anonymous" Role has the following permissions:
12931295

@@ -1509,10 +1511,14 @@ The ``addPermission`` method takes a three optional parameters:
15091511

15101512
ctx['permission'] the name of the permission (e.g. View, Edit...).
15111513

1512-
The second form is preferred as it makes it easier to implement more
1513-
complex permission schemes. An `example in upgrading.html
1514-
<upgrading.html#enhancement-to-check-command-for-permissions>`_
1515-
shows the use of ``ctx``.
1514+
The second form is preferred as it makes it easier to implement more
1515+
complex permission schemes. An `example in upgrading.html
1516+
<upgrading.html#enhancement-to-check-command-for-permissions>`_
1517+
shows the use of ``ctx``.
1518+
1519+
Note that the check option is not supported for the Search
1520+
permission. When searching there is no item defined, so a check
1521+
function doesn not make any sense.
15161522

15171523
**properties**
15181524
A sequence of property names that are the only properties to apply the

0 commit comments

Comments
 (0)