FIX Protection so even if link is output for external user, links is
disabled.
This commit is contained in:
parent
e82aa97d0e
commit
8d5c853267
@ -1915,7 +1915,14 @@ class Societe extends CommonObject
|
||||
}
|
||||
$link.='>';
|
||||
$linkend='</a>';
|
||||
|
||||
|
||||
global $user;
|
||||
if (! $user->rights->societe->client->voir && $user->societe_id > 0 && $this->id != $user->societe_id)
|
||||
{
|
||||
$link='';
|
||||
$linkend='';
|
||||
}
|
||||
|
||||
if ($withpicto) $result.=($link.img_object(($notooltip?'':$label), 'company', ($notooltip?'':'class="classfortooltip"')).$linkend);
|
||||
if ($withpicto && $withpicto != 2) $result.=' ';
|
||||
if ($withpicto != 2) $result.=$link.($maxlen?dol_trunc($name,$maxlen):$name).$linkend;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user