UBERF-4527: Extra logging for client (#4133)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-12-04 23:03:21 +07:00
committed by GitHub
parent 4eb07074d0
commit c9e1d9fd51
30 changed files with 410 additions and 307 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ export async function getUser (storage: ServerStorage, ctx: SessionContext): Pro
}
const account = (await storage.modelDb.findAll(core.class.Account, { email: ctx.userEmail }))[0]
if (account === undefined) {
if (ctx.userEmail === systemAccountEmail) {
if (ctx.userEmail === systemAccountEmail || ctx.admin === true) {
return {
_id: core.account.System,
_class: core.class.Account,