#25229: Docs for permission_required decorator doesn't describe behaviour for multiple permission arguments --------------------------------------+-------------------- Reporter: direvus | Owner: nobody Type: Cleanup/optimization | Status: new Component: Documentation | Version: 1.8 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 --------------------------------------+-------------------- The docs for permission_required say that you may pass in an iterable of permissions, but don't say anything about what that actually means. Does it require ANY of the listed permissions, or ALL?
To figure this out, the user has to look up the source code for permission_required, see that it calls has_perms(), and then look up the docs for has_perms to see that it requires ALL the listed permissions to be held. Sad trombone. https://docs.djangoproject.com/en/1.8/topics/auth/default/#the-permission- required-decorator -- Ticket URL: <https://code.djangoproject.com/ticket/25229> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/050.82857901bbe4be74b1bdb0848d6e39b7%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.