Merge pull request #1525 from nextcloud/bugfix/sentry
Fix undefined users variable
This commit is contained in:
@@ -234,11 +234,11 @@ class PermissionService {
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$users = [];
|
||||||
$owner = $this->userManager->get($board->getOwner());
|
$owner = $this->userManager->get($board->getOwner());
|
||||||
if ($owner === null) {
|
if ($owner === null) {
|
||||||
$this->logger->info('No owner found for board ' . $board->getId());
|
$this->logger->info('No owner found for board ' . $board->getId());
|
||||||
} else {
|
} else {
|
||||||
$users = [];
|
|
||||||
$users[$owner->getUID()] = new User($owner);
|
$users[$owner->getUID()] = new User($owner);
|
||||||
}
|
}
|
||||||
$acls = $this->aclMapper->findAll($boardId);
|
$acls = $this->aclMapper->findAll($boardId);
|
||||||
|
|||||||
Reference in New Issue
Block a user