diff options
| author | Éric Araujo <merwok@netwok.org> | 2020-07-02 17:06:02 -0400 |
|---|---|---|
| committer | Éric Araujo <merwok@netwok.org> | 2020-07-02 17:06:02 -0400 |
| commit | 5f37acda1c8af7cb288e792e2c82f728fe254818 (patch) | |
| tree | a7b0f7e1f227bae84baf33240d7ea1831c894ce7 /docs/narr | |
| parent | 70a23ba6e872ae03988caa322f8dd2b03770515c (diff) | |
| download | pyramid-5f37acda1c8af7cb288e792e2c82f728fe254818.tar.gz pyramid-5f37acda1c8af7cb288e792e2c82f728fe254818.tar.bz2 pyramid-5f37acda1c8af7cb288e792e2c82f728fe254818.zip | |
improve doc
Co-Authored-By: Steve Piercy
Diffstat (limited to 'docs/narr')
| -rw-r--r-- | docs/narr/viewconfig.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/narr/viewconfig.rst b/docs/narr/viewconfig.rst index 2dd5bfb9e..de82fc075 100644 --- a/docs/narr/viewconfig.rst +++ b/docs/narr/viewconfig.rst @@ -495,12 +495,11 @@ configured view. .. versionadded:: 1.4a3 ``is_authenticated`` - - This value, if specified, must be either ``True`` or ``False``. If it is - specified and is ``True``, the request must be for an authenticated user, - as determined by the :term:`security policy` in use. If it is specified and - ``False``, the associated view callable will be invoked only if the request - does not have an authenticated user. + This value, if specified, must be either ``True`` or ``False``. + If it is specified and ``True``, only a request from an authenticated user, as + determined by the :term:`security policy` in use, will satisfy the predicate. + If it is specified and ``False``, only a request from a user who is not + authenticated will satisfy the predicate. .. versionadded:: 2.0 @@ -516,6 +515,7 @@ configured view. .. versionadded:: 1.4a4 .. deprecated:: 2.0 + Use ``is_authenticated`` or a custom predicate. ``custom_predicates`` If ``custom_predicates`` is specified, it must be a sequence of references to |
