diff --git a/lib/Alchemy/Phrasea/Application.php b/lib/Alchemy/Phrasea/Application.php index d7cfe6ea57..090e8b5057 100644 --- a/lib/Alchemy/Phrasea/Application.php +++ b/lib/Alchemy/Phrasea/Application.php @@ -693,7 +693,7 @@ class Application extends SilexApplication return count(\User_Adapter::getInstance($usrId, $this)->ACL()->get_granted_base()) > 0; } - public function hasTermsOfUse() + public function hasLoginTermsOfUse() { return '' !== \databox_cgu::getHome($this); } diff --git a/templates/web/login/layout/base-layout.html.twig b/templates/web/login/layout/base-layout.html.twig index 7fbd9f90e1..da02f24500 100644 --- a/templates/web/login/layout/base-layout.html.twig +++ b/templates/web/login/layout/base-layout.html.twig @@ -78,7 +78,7 @@
  • {% trans "Help" %}
  • - {% if app.hasTermsOfUse() %} + {% if app.hasLoginTermsOfUse() %}
  • {% block tou_link %} {% trans "Terms of use" %}