Skip to content

Commit 1727a83

Browse files
author
Carl Schwan
committed
perf: only fetch acls when not present already
1 parent ce81c89 commit 1727a83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/PermissionService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function getPermissions(int $boardId, ?string $userId = null) {
6464
try {
6565
$board = $this->getBoard($boardId);
6666
$owner = $this->userIsBoardOwner($boardId, $userId);
67-
$acls = $board->getDeletedAt() === 0 ? $this->aclMapper->findAll($boardId) : [];
67+
$acls = $board->getDeletedAt() === 0 && $board->getAcl() === null ? $this->aclMapper->findAll($boardId) : [];
6868
} catch (MultipleObjectsReturnedException|DoesNotExistException $e) {
6969
$owner = false;
7070
$acls = [];

0 commit comments

Comments
 (0)