#37021: Add a helper function to return the permission string representation to
be
used with `user.has_perm()`
-------------------------------------+-------------------------------------
Reporter: Mariatta | Owner: Mariatta
Type: New feature | Status: closed
Component: contrib.auth | Version: 6.0
Severity: Normal | Resolution: fixed
Keywords: codename, has_perm | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mariatta):
Yeah I wasn't sure if modifying `User.has_perm` to accept a `Permission`
class would require a different feature request or not. My original
proposal was scoped to adding the helper function/property. Therefore I
went ahead to implement it after Jacob accepted the issue.
Can't we keep both?
No hard feelings even if you decide to revert this change :)
--
Ticket URL: <https://code.djangoproject.com/ticket/37021#comment:12>
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 view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019d6a2f9aa2-ebeb01a8-4feb-40eb-a5af-635e84873751-000000%40eu-central-1.amazonses.com.