summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/narr/security.rst2
-rw-r--r--repoze/bfg/interfaces.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/security.rst b/docs/narr/security.rst
index a733aef9b..10e33eb28 100644
--- a/docs/narr/security.rst
+++ b/docs/narr/security.rst
@@ -623,7 +623,7 @@ that implements the following interface:
.. code-block:: python
class IAuthorizationPolicy(object):
- """ A adapter on context """
+ """ An object representing a BFG authorization policy. """
def permits(self, context, principals, permission):
""" Return True if any of the principals is allowed the
permission in the current context, else return False """
diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py
index 5ce6c3461..5b8ccf08b 100644
--- a/repoze/bfg/interfaces.py
+++ b/repoze/bfg/interfaces.py
@@ -209,7 +209,7 @@ class IAuthenticationPolicy(Interface):
current user on subsequent requests. """
class IAuthorizationPolicy(Interface):
- """ A adapter on context """
+ """ An object representing a BFG authorization policy. """
def permits(context, principals, permission):
""" Return True if any of the principals is allowed the
permission in the current context, else return False """