Fix RoleUtils

This commit is contained in:
Konstantinos Triantafyllou 2023-06-30 13:53:26 +03:00
parent f51095c183
commit 87d4ffa8b3
2 changed files with 1 additions and 3 deletions

View File

@ -38,7 +38,7 @@
<dependency> <!-- this dependency includes dependency to uoa-authorization-library -->
<groupId>eu.dnetlib</groupId>
<artifactId>uoa-admin-tools-library</artifactId>
<version>1.0.7</version>
<version>1.0.8</version>
</dependency>
<!--swagger-->
<dependency>

View File

@ -102,8 +102,6 @@ public class CommunityController {
@PreAuthorize("hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN)")
@RequestMapping(value = "/delete", method = RequestMethod.POST)
public Boolean deleteCommunities(@RequestBody List<String> portals) throws Exception {
List<String> roles = rolesUtils.getRoles();
for (String id: portals) {
Portal portal = portalService.getPortalById(id);
if(portal == null) {