Add rights to see tab (hrm->employee->read)
This commit is contained in:
parent
c30728326e
commit
6598ac6745
@ -94,7 +94,7 @@ function user_prepare_head($object)
|
||||
// $this->tabs = array('entity:-tabname); to remove a tab
|
||||
complete_head_from_modules($conf,$langs,$object,$head,$h,'user');
|
||||
|
||||
if (! empty($conf->hrm->enabled))
|
||||
if (! empty($conf->hrm->enabled) && $user->rights->hrm->employee->read)
|
||||
{
|
||||
// Bank
|
||||
$head[$h][0] = DOL_URL_ROOT.'/user/bank.php?id='.$object->id;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user