Handle board exceptions more gracefully

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2022-03-22 08:21:18 +01:00
parent 379f1144b3
commit a3336cb0a0
4 changed files with 32 additions and 12 deletions

View File

@@ -333,4 +333,13 @@ class PermissionService {
}
return $groups;
}
/**
* Set a different user than the current one, e.g. when no user is available in occ
*
* @param string $userId
*/
public function setUserId(string $userId): void {
$this->userId = $userId;
}
}