mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
Rename hasLoginTermsOfUse to hasTermsOfUse
This commit is contained in:
@@ -686,6 +686,11 @@ class Application extends SilexApplication
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tells if guests are allowed
|
||||||
|
*
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
public function isGuestAllowed()
|
public function isGuestAllowed()
|
||||||
{
|
{
|
||||||
$usrId = \User_Adapter::get_usr_id_from_login($this, 'invite');
|
$usrId = \User_Adapter::get_usr_id_from_login($this, 'invite');
|
||||||
@@ -697,7 +702,12 @@ class Application extends SilexApplication
|
|||||||
return count(\User_Adapter::getInstance($usrId, $this)->ACL()->get_granted_base()) > 0;
|
return count(\User_Adapter::getInstance($usrId, $this)->ACL()->get_granted_base()) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hasLoginTermsOfUse()
|
/**
|
||||||
|
* Tells if application has terms of use
|
||||||
|
*
|
||||||
|
* @return noolean
|
||||||
|
*/
|
||||||
|
public function hasTermsOfUse()
|
||||||
{
|
{
|
||||||
return '' !== \databox_cgu::getHome($this);
|
return '' !== \databox_cgu::getHome($this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="#">{% trans "Help" %}</a>
|
<a href="#">{% trans "Help" %}</a>
|
||||||
</li>
|
</li>
|
||||||
{% if app.hasLoginTermsOfUse() %}
|
{% if app.hasTermsOfUse() %}
|
||||||
<li>
|
<li>
|
||||||
{% block tou_link %}
|
{% block tou_link %}
|
||||||
<a href="{{ path("login_cgus") }}">{% trans "Terms of use" %}</a>
|
<a href="{{ path("login_cgus") }}">{% trans "Terms of use" %}</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user