mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
Rename hasLoginTermsOfuse
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
<li>
|
||||
<a href="#">{% trans "Help" %}</a>
|
||||
</li>
|
||||
{% if app.hasTermsOfUse() %}
|
||||
{% if app.hasLoginTermsOfUse() %}
|
||||
<li>
|
||||
{% block tou_link %}
|
||||
<a href="{{ path("login_cgus") }}">{% trans "Terms of use" %}</a>
|
||||
|
||||
Reference in New Issue
Block a user