summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-08-05 17:13:45 -0400
committerTim Graham <timograham@gmail.com>2015-08-05 17:13:45 -0400
commit16a8d01308f8ca4a7b4673424059424ba3fe36c8 (patch)
tree54b208e3f72fc73e92227768edc19739e3e3cc62 /docs
parent520802160a6c9e9dbe9f5859ae7e084b9000f850 (diff)
Fixed #25229 -- Clarified how an iterable works with @permission_required
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/auth/default.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt
index 8a642d20d3..bffd61588e 100644
--- a/docs/topics/auth/default.txt
+++ b/docs/topics/auth/default.txt
@@ -660,7 +660,8 @@ The ``permission_required`` decorator
(i.e. ``polls.can_vote`` for a permission on a model in the ``polls``
application).
- The decorator may also take an iterable of permissions.
+ The decorator may also take an iterable of permissions, in which case the
+ user must have all of the permissions in order to access the view.
Note that :func:`~django.contrib.auth.decorators.permission_required()`
also takes an optional ``login_url`` parameter::