diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/er/ERManagement.java b/src/main/java/org/gcube/informationsystem/resourceregistry/er/ERManagement.java index 08c2097..71e1400 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/er/ERManagement.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/er/ERManagement.java @@ -514,9 +514,15 @@ public abstract class ERManagement { logger.debug("Going to delete {} with UUID {}", accessType.getName(), uuid); try { + /* orientGraph = ContextUtility .getActualSecurityContextGraph(PermissionMode.WRITER); - + */ + + orientGraph = SecurityContextMapper.getSecurityContextFactory( + SecurityContextMapper.ADMIN_SECURITY_CONTEXT_UUID, + PermissionMode.WRITER).getTx(); + boolean deleted = reallyDelete(); if(deleted){