From 16a8d01308f8ca4a7b4673424059424ba3fe36c8 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 5 Aug 2015 17:13:45 -0400 Subject: [PATCH] Fixed #25229 -- Clarified how an iterable works with @permission_required --- docs/topics/auth/default.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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::