From 4ae79d13a3bad9fccd8afc4fd3366953f17d3c1f Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Wed, 1 Feb 2023 21:17:51 +0200 Subject: [PATCH] Fix remove admin role string --- .../dnetrolemanagement/controllers/SuperAdminController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/dnetlib/dnetrolemanagement/controllers/SuperAdminController.java b/src/main/java/eu/dnetlib/dnetrolemanagement/controllers/SuperAdminController.java index f479c11..bd3e84c 100644 --- a/src/main/java/eu/dnetlib/dnetrolemanagement/controllers/SuperAdminController.java +++ b/src/main/java/eu/dnetlib/dnetrolemanagement/controllers/SuperAdminController.java @@ -84,7 +84,7 @@ public class SuperAdminController { String identifier = registryService.getIdentifierByCoPersonId(coPersonId); Integer role = registryService.getRoleId(coPersonId, couId); registryService.removeMemberRole(coPersonId, couId, role); - authoritiesUpdater.removeRole(identifier, new SimpleGrantedAuthority(AuthoritiesUtils.portalAdminRole())); + authoritiesUpdater.removeRole(identifier, new SimpleGrantedAuthority(AuthoritiesUtils.PORTAL_ADMIN)); }); return ResponseEntity.ok(new Response("Role has been revoked successfully")); }