From 974b1175001c31d48782f69708add23dbbe2520f Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 23 Nov 2023 15:29:34 +0000 Subject: [PATCH] Allow creators to use the builder portal --- packages/shared-core/src/sdk/documents/users.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/shared-core/src/sdk/documents/users.ts b/packages/shared-core/src/sdk/documents/users.ts index ccd88bf854..20b4b64c44 100644 --- a/packages/shared-core/src/sdk/documents/users.ts +++ b/packages/shared-core/src/sdk/documents/users.ts @@ -76,7 +76,11 @@ export function hasBuilderPermissions(user?: User | ContextUser): boolean { if (!user) { return false } - return user.builder?.global || hasAppBuilderPermissions(user) + return ( + user.builder?.global || + hasAppBuilderPermissions(user) || + hasCreatorPermissions(user) + ) } // checks if a user is capable of being an admin