Make user id from occ command available in the service

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2019-12-19 21:54:53 +01:00
parent a34f13c464
commit c3c48b84ed
3 changed files with 11 additions and 23 deletions

View File

@@ -98,6 +98,15 @@ class BoardService {
$this->userId = $userId;
}
/**
* 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;
}
/**
* @return array
*/