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.'); } }