Browse Source

createForm method was trying to access getSecurityHandler() from itself, when it should have been using the data object since that object actually has the method, whereas AdminObjectAclManipulator doesn't.

jrdn hannah 11 years ago
parent
commit
9e5e6891a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Util/AdminObjectAclManipulator.php

+ 1 - 1
Util/AdminObjectAclManipulator.php

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