commented no more needed code
This commit is contained in:
parent
180e043e65
commit
b2b2306c37
|
@ -141,14 +141,8 @@ public class User extends REST<CKANUser> implements org.gcube.gcat.api.interface
|
||||||
@DELETE
|
@DELETE
|
||||||
// @AuthorizationControl(allowedRoles={Role.CATALOGUE_MANAGER}, exception=NotAuthorizedException.class)
|
// @AuthorizationControl(allowedRoles={Role.CATALOGUE_MANAGER}, exception=NotAuthorizedException.class)
|
||||||
public Response removeCallerFromCache() {
|
public Response removeCallerFromCache() {
|
||||||
SecretManager secretManager = SecretManagerProvider.instance.get();
|
|
||||||
org.gcube.common.authorization.utils.user.User user = secretManager.getUser();
|
|
||||||
// if(user.getRoles().contains(Role.MANAGER.getPortalRole())) {
|
|
||||||
// Any user can remove self from cache
|
// Any user can remove self from cache
|
||||||
CKANUserCache.removeUserFromCache();
|
CKANUserCache.removeUserFromCache();
|
||||||
// }else {
|
|
||||||
// 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