mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #25229 -- Clarified how an iterable works with @permission_required
This commit is contained in:
parent
520802160a
commit
16a8d01308
1 changed files with 2 additions and 1 deletions
|
@ -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::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue