Delete Resourse is done using admin user

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@146688 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-04-07 13:55:22 +00:00
parent 20359dd47b
commit 4b08a2c717
1 changed files with 7 additions and 1 deletions

View File

@ -514,9 +514,15 @@ public abstract class ERManagement<ERType extends ER, El extends Element> {
logger.debug("Going to delete {} with UUID {}", accessType.getName(), uuid); logger.debug("Going to delete {} with UUID {}", accessType.getName(), uuid);
try { try {
/*
orientGraph = ContextUtility orientGraph = ContextUtility
.getActualSecurityContextGraph(PermissionMode.WRITER); .getActualSecurityContextGraph(PermissionMode.WRITER);
*/
orientGraph = SecurityContextMapper.getSecurityContextFactory(
SecurityContextMapper.ADMIN_SECURITY_CONTEXT_UUID,
PermissionMode.WRITER).getTx();
boolean deleted = reallyDelete(); boolean deleted = reallyDelete();
if(deleted){ if(deleted){