fix(striker-ui-api): don't allow admin to change username

main
Tsu-ba-me 2 years ago
parent cbfbc38f10
commit e93c48bec4
  1. 2
      striker-ui-api/src/lib/request_handlers/user/updateUser.ts

@ -112,7 +112,7 @@ export const updateUser: RequestHandler<
} }
} }
if (userName.length && userName !== xUserName) { if (userName.length && xUserName !== 'admin' && userName !== xUserName) {
assigns.push(`user_name = '${userName}'`); assigns.push(`user_name = '${userName}'`);
} }

Loading…
Cancel
Save