Use fosuser_registration directly instead of wallabag_user.registration_enabled

This commit is contained in:
Yassine Guedidi
2022-05-05 23:39:26 +02:00
parent 935070f2a5
commit 5a55a64fee
6 changed files with 3 additions and 15 deletions

View File

@ -39,7 +39,7 @@ class WallabagRestController extends AbstractFOSRestController
$info = [
'appname' => 'wallabag',
'version' => $this->container->getParameter('wallabag_core.version'),
'allowed_registration' => $this->container->getParameter('wallabag_user.registration_enabled'),
'allowed_registration' => $this->container->getParameter('fosuser_registration'),
];
return (new JsonResponse())->setJson($this->get('jms_serializer')->serialize($info, 'json'));