From bc816c46e20409e04e9ab186d9cc1feedf009c1b Mon Sep 17 00:00:00 2001 From: shreddedbacon Date: Fri, 28 Jul 2023 15:39:38 +1000 Subject: [PATCH] fix: permission check for shared bucket flag --- services/api/src/resources/project/resolvers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/api/src/resources/project/resolvers.ts b/services/api/src/resources/project/resolvers.ts index 0d4fdeaa7b..fc59b5e53a 100644 --- a/services/api/src/resources/project/resolvers.ts +++ b/services/api/src/resources/project/resolvers.ts @@ -598,7 +598,7 @@ export const updateProject: ResolverFn = async ( } if(typeof sharedBaasBucket == "boolean") { - if (adminScopes.projectViewAll) { + if (!adminScopes.projectViewAll) { throw new Error('Setting shared baas bucket is only available to administrators.'); } }