is_local_admin is deprecated and return always false

This commit is contained in:
Dany De Bontridder 2015-10-24 14:16:09 +02:00
parent 6b6c18ed80
commit 9849bbefa1

View file

@ -807,19 +807,7 @@ class User
function is_local_admin($p_dossier = -1)
{
if ($p_dossier==-1)
{
$p_dossier=dossier::id();
}
if ($this->login=='admin')
{
return 1;
}
else
{
return 0;
}
return 0;
}
/**
*@brief return array of available repository