Skip to content

Commit

Permalink
fix: permission check for shared bucket flag
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Jul 28, 2023
1 parent edc5647 commit bc816c4
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 bc816c4

Please sign in to comment.