Skip to content

Commit

Permalink
catalog: check vsets can be created by study admins, #TASK-7004
Browse files Browse the repository at this point in the history
  • Loading branch information
pfurio committed Oct 17, 2024
1 parent 4536689 commit bebdccb
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 bebdccb

Please sign in to comment.