Skip to content

Commit 8219a81

Browse files
committed
Link to example section rather than page.
Link to the section that is an example of using the documented parameter.
1 parent 569d55a commit 8219a81

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/reference.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,10 +1869,9 @@ The ``addPermission`` method takes a few optional parameters:
18691869
ctx['permission'] the name of the permission (e.g. View, Edit...).
18701870

18711871
The second form is preferred as it makes it easier to implement more
1872-
complex permission schemes. An example of the use of ``ctx`` can be
1873-
found in the ``upgrading.txt`` or `upgrading.html`_ document.
1874-
1875-
.. _`upgrading.html`: upgrading.html
1872+
complex permission schemes. An `example in upgrading.html
1873+
<upgrading.html#enhancement-to-check-command-for-permissions>`_
1874+
shows the use of ``ctx``.
18761875

18771876
Example Scenarios
18781877
~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)