Commit a42ea59
committed
[fix] Compare UUID values in password permission check #487
After switching the users API detail routes to uuid converters,
ChangePasswordView receives a UUID object in kwargs['pk'] instead of a
string. The self-password permission check was still comparing
str(self.request.user.id) to that UUID, which broke self password
changes and caused API test regressions.
Compare UUID values directly so self-password requests keep using the
intended IsAuthenticated permission path.
Refs #4871 parent 559e766 commit a42ea59
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
0 commit comments