diff --git a/composer.json b/composer.json index 6ac76508a6..4df120ba25 100644 --- a/composer.json +++ b/composer.json @@ -63,7 +63,7 @@ "doctrine/data-fixtures" : "1.0.x@dev", "phpunit/phpunit" : "~3.7", "behat/behat" : "~2.4", - "behat/mink" : "~1.4", + "behat/mink" : "~1.4", "behat/mink-extension" : "~1.0", "behat/mink-goutte-driver" : "~1.0", "behat/mink-selenium2-driver" : "~1.0", diff --git a/lib/Alchemy/Phrasea/Controller/Client/Root.php b/lib/Alchemy/Phrasea/Controller/Client/Root.php index 7bf641770e..2ef659f89e 100644 --- a/lib/Alchemy/Phrasea/Controller/Client/Root.php +++ b/lib/Alchemy/Phrasea/Controller/Client/Root.php @@ -27,6 +27,17 @@ class Root implements ControllerProviderInterface $controllers = $app['controllers_factory']; $controllers->before(function (Request $request) use ($app) { + /** + * /!\/!\/!\/!\/!\/!\/!\/!\/!\ + * + * Client is not longer used + * + * Redirect to production with a nice message + */ + $app['session']->getFlashBag()->add('client_deprecated'); + + return $app->redirectPath('prod'); + if (!$app['authentication']->isAuthenticated() && null !== $request->query->get('nolog')) { return $app->redirectPath('login_authenticate_as_guest', array('redirect' => 'client')); } diff --git a/templates/web/common/menubar.html.twig b/templates/web/common/menubar.html.twig index 68bd021006..a9b2255dd4 100644 --- a/templates/web/common/menubar.html.twig +++ b/templates/web/common/menubar.html.twig @@ -8,29 +8,11 @@ {% if module != "lightbox" and app['authentication'].isAuthenticated() %}