@@ 131-136 (lines=6) @@ | ||
128 | $acl = $this->aclProvider->findAcl($objectIdentity); |
|
129 | $objectAces = $acl->getObjectAces(); |
|
130 | /* @var $ace AuditableEntryInterface */ |
|
131 | foreach ($objectAces as $ace) { |
|
132 | $securityIdentity = $ace->getSecurityIdentity(); |
|
133 | if ($securityIdentity instanceof RoleSecurityIdentity) { |
|
134 | $this->permissions[$securityIdentity->getRole()] = new MaskBuilder($ace->getMask()); |
|
135 | } |
|
136 | } |
|
137 | } catch (AclNotFoundException $e) { |
|
138 | // No Acl found - do nothing (or should we initialize with default values here?) |
|
139 | } |
@@ 757-765 (lines=9) @@ | ||
754 | $objectAces = $acl->getObjectAces(); |
|
755 | ||
756 | /* @var AuditableEntryInterface $ace */ |
|
757 | foreach ($objectAces as $ace) { |
|
758 | $securityIdentity = $ace->getSecurityIdentity(); |
|
759 | if ( |
|
760 | $securityIdentity instanceof RoleSecurityIdentity && |
|
761 | ($ace->getMask() & MaskBuilder::MASK_VIEW != 0) |
|
762 | ) { |
|
763 | $roles[] = $securityIdentity->getRole(); |
|
764 | } |
|
765 | } |
|
766 | } catch (AclNotFoundException $e) { |
|
767 | // No ACL found... assume default |
|
768 | $roles = array('IS_AUTHENTICATED_ANONYMOUSLY'); |