Fixed error message
This commit is contained in:
parent
04090463c9
commit
35feb32c93
|
@ -87,7 +87,7 @@ public class User extends REST<CKANUser> implements org.gcube.gcat.api.interface
|
||||||
if(user.getRoles().contains(Role.MANAGER.getPortalRole())) {
|
if(user.getRoles().contains(Role.MANAGER.getPortalRole())) {
|
||||||
CKANUserCache.removeUserFromCache();
|
CKANUserCache.removeUserFromCache();
|
||||||
}else {
|
}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();
|
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())) {
|
if(user.getRoles().contains(Role.MANAGER.getPortalRole())) {
|
||||||
CKANUserCache.removeUserFromCache(username);
|
CKANUserCache.removeUserFromCache(username);
|
||||||
}else {
|
}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();
|
return Response.status(Status.NO_CONTENT).build();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue