Skip to content

Commit

Permalink
MODCON-42 missed permission (folio-org#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaSedyx authored May 31, 2023
1 parent 0763dd6 commit d1b3c49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ public Tenant save(UUID consortiumId, UUID adminUserId, Tenant tenantDto) {
userTenantRepository.save(createUserTenantEntity(consortiumId, shadowAdminUser, tenantDto));

try (var context = new FolioExecutionContextSetter(contextHelper.getSystemUserFolioExecutionContext(tenantDto.getId()))) {
createShadowAdminUserWithPermissions(shadowAdminUser);
configurationClient.saveConfiguration(createConsortiaConfigurationBody(centralTenantId));
createUserTenantWithDummyUser(tenantDto.getId());
createShadowAdminUserWithPermissions(shadowAdminUser);
createPrimaryUserAffiliationsAsync.createPrimaryUserAffiliationsAsync(consortiumId, savedTenantEntity, tenantDto);
configurationClient.saveConfiguration(createConsortiaConfigurationBody(centralTenantId));
}
log.info("save:: saved consortia configuration with centralTenantId={} by tenantId={} context", centralTenantId, tenantDto.getId());
return savedTenant;
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/permissions/system-user-permissions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ perms.users.item.delete
perms.users.assign.immutable
perms.users.assign.mutable
perms.users.get
user-tenants.item.post

0 comments on commit d1b3c49

Please sign in to comment.