user_change_password in UserAdmin should lookup change permission
|Reported by:||jturnbull||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When subclassing UserAdmin the internal user_change_password view has a hardcoded "auth.change_user" permission check.
That requires the user to have edit permissions for the user model aswell as the subclass.
It should instead use the local has_change_permission check, which is neater anyway. Attached patch fixes this.
Change History (5)
Changed 6 years ago by jturnbull
comment:1 Changed 6 years ago by jacob
- milestone set to 1.1
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted