Move static::guest_allowed method to Application

This commit is contained in:
Nicolas Le Goff
2013-07-05 17:58:08 +02:00
parent ae9aa7f4fc
commit 0b4f8c4b07
5 changed files with 15 additions and 16 deletions

View File

@@ -87,17 +87,6 @@ class phrasea
return self::$_sbas_params;
}
public static function guest_allowed(Application $app)
{
$usr_id = User_Adapter::get_usr_id_from_login($app, 'invite');
if (!$usr_id) {
return false;
}
$user = User_Adapter::getInstance($usr_id, $app);
return count($user->ACL()->get_granted_base()) > 0;
}
public static function use_i18n($locale, $textdomain = 'phraseanet')
{
$codeset = "UTF-8";