Skip to content

Commit

Permalink
Update currentapp.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
IchthysMaranathaCopy authored Mar 11, 2024
1 parent e42a95e commit c1aedbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/middleware/currentapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit c1aedbb

Please sign in to comment.