Skip to content

Commit

Permalink
Reverted added fix for Problematic#13
Browse files Browse the repository at this point in the history
  • Loading branch information
mailaneel committed Feb 25, 2012
1 parent 326eef8 commit 1f0b9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Domain/AclManager.php
Expand Up @@ -44,7 +44,7 @@ protected function addPermission($domainObject, $mask, $securityIdentity = null,
$securityIdentity = $this->getUser();
}
$context = $this->doCreatePermissionContext($type, $securityIdentity, $mask);
$oid = ($type == 'object') ? ObjectIdentity::fromDomainObject($domainObject) : new ObjectIdentity('class', $domainObject);
$oid = ObjectIdentity::fromDomainObject($domainObject);
$acl = $this->doLoadAcl($oid);
$this->doApplyPermission($acl, $context, $replace_existing);

Expand Down

0 comments on commit 1f0b9b4

Please sign in to comment.