From 26f8cc32f64b640f6f0c3555176722e5a91551d2 Mon Sep 17 00:00:00 2001 From: Matthew Ross Date: Tue, 13 Sep 2016 18:01:39 -0400 Subject: [PATCH] Add missing parameter --- src/api/controllers/Users.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/controllers/Users.php b/src/api/controllers/Users.php index dcdfa85..e53ddff 100644 --- a/src/api/controllers/Users.php +++ b/src/api/controllers/Users.php @@ -179,7 +179,7 @@ class Users extends BaseController { if ($user->default_board_id !== $update->default_board_id) { $newId = $update->default_board_id; - $this->addUserToBoard($newId, $user); + $this->addUserToBoard($newId, $user, $request); } if (isset($data->boardAccess)) { @@ -284,7 +284,7 @@ class Users extends BaseController { return $this->jsonResponse($response); } - private function addUserToBoard($boardId, $user) { + private function addUserToBoard($boardId, $user, $request) { if ($boardId > 0 && !Auth::HasBoardAccess($this->container, $request, $boardId, $user->id)) { $board = new Board($this->container, $boardId);