Skip to content

Commit 4f5f9af

Browse files
committed
add getObjectAces method to PermissionManager
1 parent ad30c2d commit 4f5f9af

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/Security/PermissionManager.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,19 @@ private function getAces(AclUserInterface $user, AclObjectInterface $object): ar
6262
return $aces;
6363
}
6464

65+
/**
66+
* @return AccessControlEntryInterface[]
67+
*/
68+
public function getObjectAces(AclObjectInterface $object): array
69+
{
70+
$objectKey = $this->objectMapper->getObjectKey($object);
71+
72+
return $this->repository->getObjectAces(
73+
$objectKey,
74+
$object->getId()
75+
);
76+
}
77+
6578
public function getAllowedUsers(AclObjectInterface $object, int $permission): array
6679
{
6780
$objectKey = $this->objectMapper->getObjectKey($object);

0 commit comments

Comments
 (0)