Skip to content

Commit

Permalink
Merge pull request #3495 from uselagoon/fix-shared-permcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood authored Jul 28, 2023
2 parents e8e6611 + bc816c4 commit 8c03d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/api/src/resources/project/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
}
Expand Down

0 comments on commit 8c03d29

Please sign in to comment.