Skip to content
Snippets Groups Projects
Commit 6598ac67 authored by aspangaro's avatar aspangaro
Browse files

Add rights to see tab (hrm->employee->read)

parent c3072832
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment