Explorar o código

Merge pull request #1574 from jrdnhannah/master

Wrong variable being used, which causes a fatal error.
Thomas %!s(int64=11) %!d(string=hai) anos
pai
achega
6806397db1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Util/AdminObjectAclManipulator.php

+ 1 - 1
Util/AdminObjectAclManipulator.php

@@ -64,7 +64,7 @@ class AdminObjectAclManipulator
         $objectIdentity = ObjectIdentity::fromDomainObject($data->getObject());
         $acl = $data->getSecurityHandler()->getObjectAcl($objectIdentity);
         if (!$acl) {
-            $acl = $this->getSecurityHandler()->createAcl($objectIdentity);
+            $acl = $data->getSecurityHandler()->createAcl($objectIdentity);
         }
 
         $data->setAcl($acl);