Fix remove admin role string

This commit is contained in:
Konstantinos Triantafyllou 2023-02-01 21:17:51 +02:00
parent ec9d644527
commit 4ae79d13a3
1 changed files with 1 additions and 1 deletions

View File

@ -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"));
}