summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/authorization.rst
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2020-01-17 16:09:27 -0600
committerGitHub <noreply@github.com>2020-01-17 16:09:27 -0600
commita71df99b57e88788cf9ce3a78fc005f309033bbd (patch)
tree56668260a48bef6b194a735de947ee59fd9429f6 /docs/tutorials/wiki2/authorization.rst
parent03d3bbd2791918a844da49eb4449b4953b83a31b (diff)
parent592cadd9c20ce410d9ab7b9a748ec59dff001f65 (diff)
downloadpyramid-a71df99b57e88788cf9ce3a78fc005f309033bbd.tar.gz
pyramid-a71df99b57e88788cf9ce3a78fc005f309033bbd.tar.bz2
pyramid-a71df99b57e88788cf9ce3a78fc005f309033bbd.zip
Merge pull request #3563 from mmerickel/move-acl-security-to-authorization
Move acl security to authorization
Diffstat (limited to 'docs/tutorials/wiki2/authorization.rst')
-rw-r--r--docs/tutorials/wiki2/authorization.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorials/wiki2/authorization.rst b/docs/tutorials/wiki2/authorization.rst
index 001bde935..38b9b7373 100644
--- a/docs/tutorials/wiki2/authorization.rst
+++ b/docs/tutorials/wiki2/authorization.rst
@@ -30,7 +30,7 @@ identifiers that are easier to generalize. The permissions are then written
against the principals without focusing on the exact user involved.
:app:`Pyramid` defines two builtin principals used in every application:
-:attr:`pyramid.security.Everyone` and :attr:`pyramid.security.Authenticated`.
+:attr:`pyramid.authorization.Everyone` and :attr:`pyramid.authorization.Authenticated`.
On top of these we have already mentioned the required principals for this
application in the original design. The user has two possible roles: ``editor``
or ``basic``. These will be prefixed by the string ``role:`` to avoid clashing
@@ -40,7 +40,7 @@ Open the file ``tutorial/security.py`` and edit it as follows:
.. literalinclude:: src/authorization/tutorial/security.py
:linenos:
- :emphasize-lines: 2,5-8,17,42-53
+ :emphasize-lines: 2-6,17,42-53
:language: python
Only the highlighted lines need to be added.