summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2018-09-09 06:02:55 -0700
committerSteve Piercy <web@stevepiercy.com>2018-09-09 06:02:55 -0700
commit0011d5e090bdc3571ddea18935903389b8364629 (patch)
treea614f59386e5366e8bab3f097b51aa5d21875700
parenta8f79339380bb9a223e29389628a52e340fcf2e5 (diff)
downloadpyramid-0011d5e090bdc3571ddea18935903389b8364629.tar.gz
pyramid-0011d5e090bdc3571ddea18935903389b8364629.tar.bz2
pyramid-0011d5e090bdc3571ddea18935903389b8364629.zip
grammar fixes
-rw-r--r--pyramid/security.py4
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