From c1aedbb8b94bc0e9c7c8c283e25ab4ba40b8abd6 Mon Sep 17 00:00:00 2001 From: IchthysMaranathaCopy Date: Mon, 11 Mar 2024 21:18:26 +0530 Subject: [PATCH] Update currentapp.ts --- packages/server/src/middleware/currentapp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/middleware/currentapp.ts b/packages/server/src/middleware/currentapp.ts index 2a5a0bd825f..615b95cecd0 100644 --- a/packages/server/src/middleware/currentapp.ts +++ b/packages/server/src/middleware/currentapp.ts @@ -40,7 +40,7 @@ export default async (ctx: UserCtx, next: any) => { appId = requestAppId // retrieving global user gets the right role roleId = globalUser.roleId || roleId - if (ctx.user && roleId == BUILTIN_ROLE_IDS.PUBLIC && env.UNIV_BASIC) + if (ctx.user && roleId == roles.BUILTIN_ROLE_IDS.PUBLIC && env.UNIV_BASIC) roleId = roles.BUILTIN_ROLE_IDS.BASIC // Allow builders to specify their role via a header const isBuilder =