Fix undefined users variable

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-02-04 16:44:11 +01:00
parent 1a87ab7bed
commit 498265d551

View File

@@ -234,11 +234,11 @@ class PermissionService {
return [];
}
$users = [];
$owner = $this->userManager->get($board->getOwner());
if ($owner === null) {
$this->logger->info('No owner found for board ' . $board->getId());
} else {
$users = [];
$users[$owner->getUID()] = new User($owner);
}
$acls = $this->aclMapper->findAll($boardId);