summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Controller/UserApiAccessController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/UserApiAccessController.php b/app/Controller/UserApiAccessController.php
index 0f1c891e..f9628ae6 100644
--- a/app/Controller/UserApiAccessController.php
+++ b/app/Controller/UserApiAccessController.php
@@ -32,7 +32,7 @@ class UserApiAccessController extends BaseController
'api_access_token' => Token::getToken(),
));
- $this->renderResponse();
+ $this->renderResponse($user);
}
public function remove()
@@ -45,10 +45,10 @@ class UserApiAccessController extends BaseController
'api_access_token' => null,
));
- $this->renderResponse();
+ $this->renderResponse($user);
}
- protected function renderResponse()
+ protected function renderResponse(array $user)
{
if ($this->request->isAjax()) {
$this->show();