mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 03:25:50 +00:00
Applied formatting rules for by #986 changed files
This commit is contained in:
@@ -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()
|
||||
]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user