diff --git a/striker-ui-api/src/lib/request_handlers/user/updateUser.ts b/striker-ui-api/src/lib/request_handlers/user/updateUser.ts index b870b87d..aedbcaff 100644 --- a/striker-ui-api/src/lib/request_handlers/user/updateUser.ts +++ b/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}'`); }