Skip to content

Commit

Permalink
Merge pull request #2520 from opencb/TASK-7004
Browse files Browse the repository at this point in the history
TASK-7004 - Variable set creation/update not possible with study admin permission
  • Loading branch information
pfurio authored Nov 4, 2024
2 parents d42fd7f + 909cd78 commit feedb60
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ public void checkCanAssignOrSeePermissions(String organizationId, long studyId,

@Override
public void checkCanCreateUpdateDeleteVariableSets(String organizationId, long studyId, String userId) throws CatalogException {
if (!isAtLeastOrganizationOwnerOrAdmin(organizationId, userId)) {
throw CatalogAuthorizationException.notOrganizationOwnerOrAdmin("create, update or delete variable sets.");
if (!isAtLeastStudyAdministrator(organizationId, studyId, userId)) {
throw CatalogAuthorizationException.notStudyAdmin("create, update or delete variable sets.");
}
}

Expand Down

0 comments on commit feedb60

Please sign in to comment.