Applied formatting rules for by #986 changed files

This commit is contained in:
Bernd Bestel
2020-09-06 10:10:30 +02:00
parent d0a7756a67
commit 7498d8f13d
3 changed files with 17 additions and 7 deletions

View File

@@ -9,10 +9,12 @@ class OpenApiController extends BaseApiController
public function ApiKeysList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
{
$apiKeys = $this->getDatabase()->api_keys();
if(!User::hasPermissions(User::PERMISSION_ADMIN))
if (!User::hasPermissions(User::PERMISSION_ADMIN))
{
$apiKeys = $apiKeys->where('user_id', GROCY_USER_ID);
}
return $this->renderPage($response, 'manageapikeys', [
'apiKeys' =>$apiKeys,
'apiKeys' => $apiKeys,
'users' => $this->getDatabase()->users()
]);
}