Fixed error message

This commit is contained in:
Luca Frosini 2022-04-21 17:51:57 +02:00
parent 04090463c9
commit 35feb32c93
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ public class User extends REST<CKANUser> implements org.gcube.gcat.api.interface
if(user.getRoles().contains(Role.MANAGER.getPortalRole())) {
CKANUserCache.removeUserFromCache();
}else {
throw new ForbiddenException("Only " + Role.MANAGER.getCkanRole() + "s are authorized to remove an user from the cache");
throw new ForbiddenException("Only " + Role.MANAGER.getPortalRole() + "s are authorized to remove an user from the cache");
}
return Response.status(Status.NO_CONTENT).build();
}
@ -101,7 +101,7 @@ public class User extends REST<CKANUser> implements org.gcube.gcat.api.interface
if(user.getRoles().contains(Role.MANAGER.getPortalRole())) {
CKANUserCache.removeUserFromCache(username);
}else {
throw new ForbiddenException("Only " + Role.MANAGER.getCkanRole() + "s are authorized to remove an user from the cache");
throw new ForbiddenException("Only " + Role.MANAGER.getPortalRole() + "s are authorized to remove an user from the cache");
}
return Response.status(Status.NO_CONTENT).build();
}