diff options
| -rw-r--r-- | pyramid/security.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pyramid/security.py b/pyramid/security.py index 5d4a8db4a..3e25f9b2f 100644 --- a/pyramid/security.py +++ b/pyramid/security.py @@ -133,7 +133,13 @@ def view_execution_permitted(context, request, name=''): view using the effective authentication/authorization policies and the ``request``. Return a boolean result. If no :term:`authorization policy` is in effect, or if the view is not - protected by a permission, return ``True``.""" + protected by a permission, return ``True``. If no view can view found, + an exception will be raised. + + .. versionchanged:: 1.4a4 + An exception is raised if no view is found. + + """ try: reg = request.registry except AttributeError: |
