diff options
| author | Steve Piercy <web@stevepiercy.com> | 2018-09-09 06:09:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-09 06:09:07 -0700 |
| commit | 60ab8c81c0e0cda731792cf1ecd540e2d450cc1d (patch) | |
| tree | 4f0660e78d5348c100617a1d59d44c98b708ee21 | |
| parent | 2df3dd3e10ade5dbaf211b8df4f7e3ce2d71daed (diff) | |
| parent | 0011d5e090bdc3571ddea18935903389b8364629 (diff) | |
| download | pyramid-60ab8c81c0e0cda731792cf1ecd540e2d450cc1d.tar.gz pyramid-60ab8c81c0e0cda731792cf1ecd540e2d450cc1d.tar.bz2 pyramid-60ab8c81c0e0cda731792cf1ecd540e2d450cc1d.zip | |
Merge pull request #3345 from stevepiercy/master
grammar fixes
| -rw-r--r-- | pyramid/security.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyramid/security.py b/pyramid/security.py index d12314684..4e9672d6a 100644 --- a/pyramid/security.py +++ b/pyramid/security.py @@ -192,7 +192,7 @@ def forget(request): def principals_allowed_by_permission(context, permission): """ Provided a ``context`` (a resource object), and a ``permission`` - (a string or unicode object), if a :term:`authorization policy` is + (a string or unicode object), if an :term:`authorization policy` is in effect, return a sequence of :term:`principal` ids that possess the permission in the ``context``. If no authorization policy is in effect, this will return a sequence with the single value @@ -201,7 +201,7 @@ def principals_allowed_by_permission(context, permission): .. note:: - even if an :term:`authorization policy` is in effect, + Even if an :term:`authorization policy` is in effect, some (exotic) authorization policies may not implement the required machinery for this function; those will cause a :exc:`NotImplementedError` exception to be raised when this |
