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
|
||||
// @AuthorizationControl(allowedRoles={Role.CATALOGUE_MANAGER}, exception=NotAuthorizedException.class)
|
||||
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
|
||||
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue