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:
parent
20359dd47b
commit
4b08a2c717
|
@ -514,8 +514,14 @@ public abstract class ERManagement<ERType extends ER, El extends Element> {
|
|||
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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue