@@ -322,7 +322,7 @@ |
||
322 | 322 | $tokenUserId = $this->authTokenService->getById($id)->getUserId(); |
323 | 323 | |
324 | 324 | if (!$this->acl->checkUserAccess(Acl::AUTHTOKEN_EDIT) || !$this->authTokenOnlyUser($tokenUserId)) { |
325 | - return $this->returnJsonResponse(JsonResponse::JSON_ERROR, __u('You don\'t have permission to do this operation')); |
|
325 | + return $this->returnJsonResponse(JsonResponse::JSON_ERROR, __u('You don\'t have permission to do this operation')); |
|
326 | 326 | } |
327 | 327 | |
328 | 328 | $form = new AuthTokenForm($this->dic, $id); |
@@ -159,7 +159,7 @@ |
||
159 | 159 | $authToken = $authTokenId ? $this->authTokenService->getById($authTokenId) : new AuthTokenData(); |
160 | 160 | $this->view->assign('authToken', $authToken); |
161 | 161 | |
162 | - if($this->acl->checkUserAccess(Acl::AUTHTOKEN_ONLY_USER) && !$this->session->getUserData()->getIsAdminApp()) { |
|
162 | + if ($this->acl->checkUserAccess(Acl::AUTHTOKEN_ONLY_USER) && !$this->session->getUserData()->getIsAdminApp()) { |
|
163 | 163 | $tokenUserId = $this->session->getUserData()->getId(); |
164 | 164 | $selectItems = [$this->userService->getById($tokenUserId)]; |
165 | 165 | } else { |
@@ -191,7 +191,7 @@ |
||
191 | 191 | $queryData->setFrom('AuthToken |
192 | 192 | INNER JOIN User ON AuthToken.userid = User.id'); |
193 | 193 | |
194 | - if($this->context->getUserProfile()->isMgmApiOnlyUser() && !$this->context->getUserData()->getIsAdminApp()) { |
|
194 | + if ($this->context->getUserProfile()->isMgmApiOnlyUser() && !$this->context->getUserData()->getIsAdminApp()) { |
|
195 | 195 | $queryData->setWhere('User.id = ' . $this->context->getUserData()->getId()); |
196 | 196 | } |
197 | 197 |