#30348: Add superuser_required decorator
------------------------------+--------------------------------------
Reporter: Sultan Iman | Owner: nobody
Type: New feature | Status: new
Component: contrib.auth | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Comment (by Tobias Kunze):
Summing up the discussion on the GitHub PR here:
On the plus side, Django does provide very similar decorators and mixins,
so it is surprising that `superuser_required` is not already a part of
Django.
On the other hand, adding a decorator like this is trivial with
`user_passes_test`. We could add a decorator like this to the
``user_passes_test`` documentation, to make sure searching for this
(fairly reasonable) requirement yields helpful information.
--
Ticket URL: <https://code.djangoproject.com/ticket/30348#comment:1>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/069.6a6539852980203dac7c7b25559a5702%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.