summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki/authorization.rst
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2020-01-16 10:34:45 -0600
committerMichael Merickel <michael@merickel.org>2020-01-16 10:34:45 -0600
commit592cadd9c20ce410d9ab7b9a748ec59dff001f65 (patch)
tree2e4133bffc8363259afef49f8899402d17098246 /docs/tutorials/wiki/authorization.rst
parenta7f61dc1ae95ffddacccfb583fa7a8f6d294f4b9 (diff)
downloadpyramid-592cadd9c20ce410d9ab7b9a748ec59dff001f65.tar.gz
pyramid-592cadd9c20ce410d9ab7b9a748ec59dff001f65.tar.bz2
pyramid-592cadd9c20ce410d9ab7b9a748ec59dff001f65.zip
update docs with pyramid.authorizatio imports after syncing master
Diffstat (limited to 'docs/tutorials/wiki/authorization.rst')
-rw-r--r--docs/tutorials/wiki/authorization.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/tutorials/wiki/authorization.rst b/docs/tutorials/wiki/authorization.rst
index 995dfa729..3c9913d8c 100644
--- a/docs/tutorials/wiki/authorization.rst
+++ b/docs/tutorials/wiki/authorization.rst
@@ -108,8 +108,8 @@ For our application we've defined a list of a few principals:
- ``u:<userid>``
- ``group:editor``
-- :attr:`pyramid.security.Authenticated`
-- :attr:`pyramid.security.Everyone`
+- :attr:`pyramid.authorization.Authenticated`
+- :attr:`pyramid.authorization.Everyone`
Various wiki pages will grant some of these principals access to edit existing or add new pages.
@@ -176,9 +176,9 @@ Add the following lines to the ``Wiki`` class:
:emphasize-lines: 4-7
:language: python
-We import :data:`~pyramid.security.Allow`, an action which means that
+We import :data:`~pyramid.authorization.Allow`, an action which means that
permission is allowed.
-We also import :data:`~pyramid.security.Everyone`, a special :term:`principal` that is associated to all requests.
+We also import :data:`~pyramid.authorization.Everyone`, a special :term:`principal` that is associated to all requests.
Both are used in the :term:`ACE` entries that make up the ACL.
The ACL is a list that needs to be named ``__acl__`` and be an attribute of a class.