summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--repoze/bfg/view.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/repoze/bfg/view.py b/repoze/bfg/view.py
index 0e4e47f5d..924bb35fc 100644
--- a/repoze/bfg/view.py
+++ b/repoze/bfg/view.py
@@ -18,10 +18,10 @@ _marker = object()
def view_execution_permitted(context, request, name=''):
""" If the view specified by ``context`` and ``name`` is protected
- by a permission, return the result of checking the permission
- associated with the view using the effective security policy and
- the ``request``. If no security policy is in effect, or if the
- view is not protected by a permission, return True. """
+ by a permission, check the permission associated with the view
+ using the effective security policy and the ``request``. Return a
+ boolean result. If no security policy is in effect, or if the
+ view is not protected by a permission, return True."""
security_policy = queryUtility(ISecurityPolicy)
permission = queryMultiAdapter((context, request), IViewPermission,
name=name)