Fix ParamNameMismatch occurences

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2021-06-10 08:01:27 +02:00
parent ba6f7fd55d
commit b657967cac
7 changed files with 15 additions and 12 deletions

View File

@@ -44,9 +44,9 @@ class AclMapper extends DeckMapper implements IPermissionMapper {
return ($row['owner'] === $userId);
}
public function findBoardId($aclId): ?int {
public function findBoardId($id): ?int {
try {
$entity = $this->find($aclId);
$entity = $this->find($id);
return $entity->getBoardId();
} catch (DoesNotExistException | MultipleObjectsReturnedException $e) {
}