Don't need to pass around the userInfo with it encapsulated in BoardService.
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
committed by
Julius Härtl
parent
1ffa3211ba
commit
e32adb17f2
@@ -64,7 +64,8 @@ class BoardService {
|
||||
$this->assignedUsersMapper = $assignedUsersMapper;
|
||||
}
|
||||
|
||||
public function findAll($userInfo) {
|
||||
public function findAll() {
|
||||
$userInfo = $this->getBoardPrerequisites();
|
||||
$userBoards = $this->boardMapper->findAllByUser($userInfo['user']);
|
||||
$groupBoards = $this->boardMapper->findAllByGroups($userInfo['user'], $userInfo['groups']);
|
||||
$complete = array_merge($userBoards, $groupBoards);
|
||||
@@ -112,7 +113,7 @@ class BoardService {
|
||||
return $board;
|
||||
}
|
||||
|
||||
public function getBoardPrerequisites() {
|
||||
private function getBoardPrerequisites() {
|
||||
$groups = $this->groupManager->getUserGroupIds(
|
||||
$this->userManager->get($this->userId)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user