Skip to content
Permalink
Browse files

Merge pull request #11192 from atm-maxime/fix_usertab_hr

Fix : display hr tab on user if rights to read all
  • Loading branch information...
eldy committed May 17, 2019
2 parents e2408fb + 2a2f055 commit 590ee589c1d1016f83d9ed0d6c50bf1c2aaef6af
Showing with 2 additions and 2 deletions.
  1. +2 −2 htdocs/core/lib/usergroups.lib.php
@@ -144,8 +144,8 @@ function user_prepare_head($object)
if ((! empty($conf->salaries->enabled) && ! empty($user->rights->salaries->read))
|| (! empty($conf->hrm->enabled) && ! empty($user->rights->hrm->employee->read))
|| (! empty($conf->expensereport->enabled) && ! empty($user->rights->expensereport->lire) && $user->id == $object->id)
|| (! empty($conf->holiday->enabled) && ! empty($user->rights->holiday->read) && $user->id == $object->id )
|| (! empty($conf->expensereport->enabled) && ! empty($user->rights->expensereport->lire) && ($user->id == $object->id || $user->rights->expensereport->readall))
|| (! empty($conf->holiday->enabled) && ! empty($user->rights->holiday->read) && ($user->id == $object->id || $user->rights->holiday->read_all))
)
{
// Bank

0 comments on commit 590ee58

Please sign in to comment.
You can’t perform that action at this time.