after biome unsafe, restart frontend, add superadmin

This commit is contained in:
creations 2025-04-13 10:22:47 -04:00
parent 25fcd99acf
commit c02b519eee
Signed by: creations
GPG key ID: 8F553AA4320FC711
41 changed files with 189 additions and 910 deletions

View file

@ -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(",") : [];