Fix: hide private informations if external user
This commit is contained in:
parent
c2f43ab94b
commit
046c04d563
@ -70,15 +70,18 @@ function user_prepare_head($object)
|
|||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/user/note.php?id='.$object->id;
|
if (! $user->societe_id)
|
||||||
$head[$h][1] = $langs->trans("Note");
|
{
|
||||||
$head[$h][2] = 'note';
|
$head[$h][0] = DOL_URL_ROOT.'/user/note.php?id='.$object->id;
|
||||||
$h++;
|
$head[$h][1] = $langs->trans("Note");
|
||||||
|
$head[$h][2] = 'note';
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/user/info.php?id='.$object->id;
|
$h++;
|
||||||
$head[$h][1] = $langs->trans("Info");
|
|
||||||
$head[$h][2] = 'info';
|
$head[$h][0] = DOL_URL_ROOT.'/user/info.php?id='.$object->id;
|
||||||
$h++;
|
$head[$h][1] = $langs->trans("Info");
|
||||||
|
$head[$h][2] = 'info';
|
||||||
|
$h++;
|
||||||
|
}
|
||||||
|
|
||||||
// Show more tabs from modules
|
// Show more tabs from modules
|
||||||
// Entries must be declared in modules descriptor with line
|
// Entries must be declared in modules descriptor with line
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user