mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
Fix password change issue for non-admin accounts.
This commit is contained in:
parent
0654b7b873
commit
1b172d214b
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ export default async (req, res) => {
|
|||
const { user_id: auth_user_id, is_admin } = req.auth;
|
||||
const { user_id, current_password, new_password } = req.body;
|
||||
|
||||
if (!is_admin || user_id !== auth_user_id) {
|
||||
if (!is_admin && user_id !== auth_user_id) {
|
||||
return unauthorized(res);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue