diff options
| author | Chris McDonough <chrism@plope.com> | 2013-10-28 14:08:06 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2013-10-28 14:08:06 -0400 |
| commit | 0f424ae492c4b7f11d526149046fc6467a54e438 (patch) | |
| tree | 072461e6aa562934077674b609fcc77205bef17b /docs/narr/security.rst | |
| parent | e5a0ca90d16ce78e05db71253720fa3082d8da2d (diff) | |
| parent | 3c2f95e8049bbd45b144d454daa68005361828b2 (diff) | |
| download | pyramid-0f424ae492c4b7f11d526149046fc6467a54e438.tar.gz pyramid-0f424ae492c4b7f11d526149046fc6467a54e438.tar.bz2 pyramid-0f424ae492c4b7f11d526149046fc6467a54e438.zip | |
Merge branch 'security-apis-on-request' of github.com:mgrbyte/pyramid into mgrbyte-security-apis-on-request
Diffstat (limited to 'docs/narr/security.rst')
| -rw-r--r-- | docs/narr/security.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/security.rst b/docs/narr/security.rst index e85ed823a..9e6fb6c82 100644 --- a/docs/narr/security.rst +++ b/docs/narr/security.rst @@ -550,7 +550,7 @@ also contain security debugging information in its body. Debugging Imperative Authorization Failures ------------------------------------------- -The :func:`pyramid.security.has_permission` API is used to check +The :meth:`pyramid.request.Request.has_permission` API is used to check security within view functions imperatively. It returns instances of objects that are effectively booleans. But these objects are not raw ``True`` or ``False`` objects, and have information attached to them @@ -563,7 +563,7 @@ one of :data:`pyramid.security.ACLAllowed`, ``msg`` attribute, which is a string indicating why the permission was denied or allowed. Introspecting this information in the debugger or via print statements when a call to -:func:`~pyramid.security.has_permission` fails is often useful. +:meth:`~pyramid.request.Request.has_permission` fails is often useful. .. index:: single: authentication policy (creating) |
