From d8b646de29a0fac5cd585cf3322918c0abd38581 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 24 Nov 2023 16:15:42 +0000 Subject: [PATCH] Don't consider admin app access as creator access --- packages/shared-core/src/sdk/documents/users.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared-core/src/sdk/documents/users.ts b/packages/shared-core/src/sdk/documents/users.ts index 11e80dcf29..1aaf44ff7c 100644 --- a/packages/shared-core/src/sdk/documents/users.ts +++ b/packages/shared-core/src/sdk/documents/users.ts @@ -70,7 +70,7 @@ export function hasAppCreatorPermissions(user?: User | ContextUser): boolean { return _.flow( _.get("roles"), _.values, - _.find(x => ["CREATOR", "ADMIN"].includes(x)), + _.find(x => x === "CREATOR"), x => !!x )(user) }