diff options
| author | Bert JW Regeer <xistence@0x58.com> | 2020-07-05 20:45:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-05 20:45:21 -0700 |
| commit | 5269b28e728a470b94f194bf8febd46278b1f356 (patch) | |
| tree | a7b0f7e1f227bae84baf33240d7ea1831c894ce7 /docs/narr/advanced-features.rst | |
| parent | 48a04855ad4f1f1ae6af934090f35a4ad035ed67 (diff) | |
| parent | 5f37acda1c8af7cb288e792e2c82f728fe254818 (diff) | |
| download | pyramid-5269b28e728a470b94f194bf8febd46278b1f356.tar.gz pyramid-5269b28e728a470b94f194bf8febd46278b1f356.tar.bz2 pyramid-5269b28e728a470b94f194bf8febd46278b1f356.zip | |
Merge pull request #3598 from merwok/feature/is_authenticated
Add Request.is_authenticated and is_authenticated predicate
Diffstat (limited to 'docs/narr/advanced-features.rst')
| -rw-r--r-- | docs/narr/advanced-features.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/narr/advanced-features.rst b/docs/narr/advanced-features.rst index 6e819ff5b..6f3b4e11b 100644 --- a/docs/narr/advanced-features.rst +++ b/docs/narr/advanced-features.rst @@ -34,7 +34,7 @@ For our example above, you can do this instead: .. code-block:: python :linenos: - @view_config(route_name="items", effective_principals=pyramid.authorization.Authenticated) + @view_config(route_name="items", is_authenticated=True) def auth_view(request): # do one thing |
