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
@@ -38,7 +38,6 @@ class BoardController extends ApiController {
|
||||
private $userManager;
|
||||
private $groupManager;
|
||||
private $permissionService;
|
||||
private $userInfo;
|
||||
|
||||
public function __construct($appName, IRequest $request, IUserManager $userManager, IGroupManager $groupManager, BoardService $boardService, PermissionService $permissionService, $userId) {
|
||||
parent::__construct($appName, $request);
|
||||
@@ -47,14 +46,13 @@ class BoardController extends ApiController {
|
||||
$this->groupManager = $groupManager;
|
||||
$this->boardService = $boardService;
|
||||
$this->permissionService = $permissionService;
|
||||
$this->userInfo = $this->boardSerivce->getBoardPrerequisites();
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
*/
|
||||
public function index() {
|
||||
return $this->boardService->findAll($this->userInfo);
|
||||
return $this->boardService->findAll();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user