#35959: Admin "Change password" Button Visible with Only "Can view user"
Permission
-------------------------------------+-------------------------------------
Reporter: Dev Namdev | Owner: Brock
| Smickley
Type: Bug | Status: assigned
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: Permissions, Admin | Triage Stage: Accepted
Interface, Change Password, View |
User, Permission Bug |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Comment (by Brock Smickley):
I speculate that the solution involves extracting the user's permission
and passing it to the context in `ReadOnlyPasswordHashWidget`, but I'm
struggling to figure out how to do that. I was trying to figure out a way
to use the [https://docs.djangoproject.com/en/5.1/ref/templates/api
/#django-contrib-auth-context-processors-auth auth function] from
`context_processors.py` but the template isn't rendered by a request,
right?
--
Ticket URL: <https://code.djangoproject.com/ticket/35959#comment:4>
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/0107019394795805-b145fae4-36b1-4ee2-8930-deeee0ad1922-000000%40eu-central-1.amazonses.com.