Passed
Pull Request — master (#1516)
by
unknown
04:28
created
app/modules/web/Controllers/AuthTokenController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
lib/SP/Repositories/AuthToken/AuthTokenRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.