diff --git a/lib/Alchemy/Phrasea/Controller/Api/V1.php b/lib/Alchemy/Phrasea/Controller/Api/V1.php index 8b14102a00..1e794cdf5f 100644 --- a/lib/Alchemy/Phrasea/Controller/Api/V1.php +++ b/lib/Alchemy/Phrasea/Controller/Api/V1.php @@ -146,6 +146,9 @@ class V1 implements ControllerProviderInterface * Log occurs in after filter */ $controllers->after(function (Request $request, Response $response) use ($app, $parseRoute) { + if (false !== stripos($request->headers->get('user-agent', ''), 'Phraseanet SDK Player')) { + return; + } $account = $app['token']->get_account(); $pathInfo = $request->getPathInfo(); $route = $parseRoute($pathInfo, $response); diff --git a/lib/Alchemy/Phrasea/Controller/Prod/Push.php b/lib/Alchemy/Phrasea/Controller/Prod/Push.php index 138ab823e7..dff75932e9 100644 --- a/lib/Alchemy/Phrasea/Controller/Prod/Push.php +++ b/lib/Alchemy/Phrasea/Controller/Prod/Push.php @@ -217,7 +217,7 @@ class Push implements ControllerProviderInterface 'ssel_id' => $Basket->getId(), ); - if (!$app['phraseanet.registry']->get('GV_force_push_authentication') || !$request->get('force_authentication')) { + if (!$app['phraseanet.registry']->get('GV_enable_push_authentication') || !$request->get('force_authentication')) { $arguments['LOG'] = $app['tokens']->getUrlToken( \random::TYPE_VIEW, $user_receiver->get_id(), diff --git a/lib/conf.d/_GV_template.inc b/lib/conf.d/_GV_template.inc index d054ac6eda..d79333077f 100644 --- a/lib/conf.d/_GV_template.inc +++ b/lib/conf.d/_GV_template.inc @@ -267,11 +267,18 @@ return call_user_func_array(function(Application $app) { 'vars' => array( array( 'type' => \registry::TYPE_BOOLEAN, - 'name' => 'GV_force_push_authentication', + 'name' => 'GV_enable_push_authentication', 'comment' => _('Enable Forcing authentication to see push content'), 'help' => _('Adds an option to the push form submission to restrict push recipient(s) to Phraseanet users only.'), 'default' => false ), + array( + 'type' => \registry::TYPE_BOOLEAN, + 'name' => 'GV_force_push_authentication', + 'comment' => _('Set force authentication option to see push content as mandatory'), + 'help' => _('Disallow the possibility for the end user to disable push authentication'), + 'default' => false + ), array( 'type' => \registry::TYPE_STRING, 'name' => 'GV_adminMail', diff --git a/locale/en_GB/LC_MESSAGES/phraseanet.mo b/locale/en_GB/LC_MESSAGES/phraseanet.mo index 6e40d51518..f06e8df489 100644 Binary files a/locale/en_GB/LC_MESSAGES/phraseanet.mo and b/locale/en_GB/LC_MESSAGES/phraseanet.mo differ diff --git a/locale/en_GB/LC_MESSAGES/phraseanet.po b/locale/en_GB/LC_MESSAGES/phraseanet.po index a27e8c83ed..c81789bdaf 100644 --- a/locale/en_GB/LC_MESSAGES/phraseanet.po +++ b/locale/en_GB/LC_MESSAGES/phraseanet.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-14 14:10+0100\n" -"PO-Revision-Date: 2014-06-04 17:03+0100\n" +"PO-Revision-Date: 2014-06-25 12:08+0100\n" "Last-Translator: Anthony \n" "Language-Team: \n" "Language: en_GB\n" @@ -11501,6 +11501,9 @@ msgstr "Unable to create template, its given name is already used." msgid "Unable to create the user." msgstr "Unable to create the user." +msgid "Set force authentication option to see push content as mandatory" +msgstr "Set 'force authentication option' for push as mandatory" + #~ msgid "Enable H264 stream mode" #~ msgstr "Enable H264 stream mode" diff --git a/locale/fr_FR/LC_MESSAGES/phraseanet.mo b/locale/fr_FR/LC_MESSAGES/phraseanet.mo index 41baf9e27a..c377564d9f 100644 Binary files a/locale/fr_FR/LC_MESSAGES/phraseanet.mo and b/locale/fr_FR/LC_MESSAGES/phraseanet.mo differ diff --git a/locale/fr_FR/LC_MESSAGES/phraseanet.po b/locale/fr_FR/LC_MESSAGES/phraseanet.po index 934c6d45a6..5b181475f7 100644 --- a/locale/fr_FR/LC_MESSAGES/phraseanet.po +++ b/locale/fr_FR/LC_MESSAGES/phraseanet.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-14 14:10+0100\n" -"PO-Revision-Date: 2014-06-04 17:02+0100\n" +"PO-Revision-Date: 2014-06-25 12:07+0100\n" "Last-Translator: Anthony \n" "Language-Team: \n" "Language: fr_FR\n" @@ -11678,6 +11678,9 @@ msgstr "Impossible le créer ce modèle, le nom donné est déjà utilisé." msgid "Unable to create the user." msgstr "Impossible de créer cet utilisateur." +msgid "Set force authentication option to see push content as mandatory" +msgstr "Rendre obligatoire l'option d'authentification forcée" + #~ msgid "Enable H264 stream mode" #~ msgstr "Activer H264 en mode flux continu (lecture en streaming)" diff --git a/templates/web/prod/actions/Download/prepare.html.twig b/templates/web/prod/actions/Download/prepare.html.twig index a9cdad2898..221e722ef0 100644 --- a/templates/web/prod/actions/Download/prepare.html.twig +++ b/templates/web/prod/actions/Download/prepare.html.twig @@ -94,9 +94,10 @@
- {% if anonymous %} + + {% if anonymous %} - {% endif%} + {% endif%}
diff --git a/templates/web/prod/templates/push.html.twig b/templates/web/prod/templates/push.html.twig index bbf70b723e..dc1b451fe3 100644 --- a/templates/web/prod/templates/push.html.twig +++ b/templates/web/prod/templates/push.html.twig @@ -154,10 +154,11 @@ {% trans %}Accuse de reception{% endtrans %} - {% if app['phraseanet.registry'].get('GV_force_push_authentication') %} + {% if app['phraseanet.registry'].get('GV_enable_push_authentication') %} + {% set force = app['phraseanet.registry'].get('GV_force_push_authentication', false)%}
-
diff --git a/www/skins/prod/jquery.main-prod.js b/www/skins/prod/jquery.main-prod.js index 9fe34d5f7b..e57a89b323 100644 --- a/www/skins/prod/jquery.main-prod.js +++ b/www/skins/prod/jquery.main-prod.js @@ -398,7 +398,11 @@ function afterSearch() { delay: 0 }); $('.previewTips').tooltip({ - fixable: true + fixable: true, + delay: 200, + top: 15, + left: 15, + outside: false }); $('.thumb .rollovable').hover( function () {