after biome unsafe, restart frontend, add superadmin
This commit is contained in:
parent
25fcd99acf
commit
c02b519eee
41 changed files with 189 additions and 910 deletions
|
@ -110,9 +110,9 @@ async function handler(request: ExtendedRequest): Promise<Response> {
|
|||
);
|
||||
}
|
||||
|
||||
delete user.password;
|
||||
delete user.authorization_token;
|
||||
if (!isSelf) delete user.email;
|
||||
user.password = undefined;
|
||||
user.authorization_token = undefined;
|
||||
if (!isSelf) user.email = undefined;
|
||||
|
||||
user.roles = user.roles ? user.roles[0].split(",") : [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue