Do not error on deprecated methods for now

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-12-28 14:40:14 +01:00
parent 34f45d985f
commit 4e92faa517
11 changed files with 31 additions and 25 deletions

View File

@@ -106,7 +106,7 @@ class PermissionService {
/**
* Get current user permissions for a board
*
* @param Board|Entity $board
* @param Board $board
* @return array|bool
* @internal param $boardId
*/
@@ -170,10 +170,9 @@ class PermissionService {
try {
$board = $this->boardMapper->find($boardId);
return $board && $userId === $board->getOwner();
} catch (DoesNotExistException $e) {
} catch (MultipleObjectsReturnedException $e) {
return false;
} catch (DoesNotExistException | MultipleObjectsReturnedException $e) {
}
return false;
}
/**