diff options
| author | Steve Piercy <web@stevepiercy.com> | 2018-09-09 06:02:55 -0700 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2018-09-09 06:02:55 -0700 |
| commit | 0011d5e090bdc3571ddea18935903389b8364629 (patch) | |
| tree | a614f59386e5366e8bab3f097b51aa5d21875700 | |
| parent | a8f79339380bb9a223e29389628a52e340fcf2e5 (diff) | |
| download | pyramid-0011d5e090bdc3571ddea18935903389b8364629.tar.gz pyramid-0011d5e090bdc3571ddea18935903389b8364629.tar.bz2 pyramid-0011d5e090bdc3571ddea18935903389b8364629.zip | |
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 |
