Merge branch '10.0' of git@github.com:Dolibarr/dolibarr.git into 10.0
This commit is contained in:
commit
73422b2149
@ -54,6 +54,7 @@ $ok=false;
|
|||||||
if ($user->id == $id) $ok=true; // A user can always read its own card
|
if ($user->id == $id) $ok=true; // A user can always read its own card
|
||||||
if (! empty($user->rights->salaries->read)) $ok=true;
|
if (! empty($user->rights->salaries->read)) $ok=true;
|
||||||
if (! empty($user->rights->hrm->read)) $ok=true;
|
if (! empty($user->rights->hrm->read)) $ok=true;
|
||||||
|
if (! empty($user->rights->expensereport->lire) && ($user->id == $object->id || $user->rights->expensereport->readall)) $ok=true;
|
||||||
if (! $ok)
|
if (! $ok)
|
||||||
{
|
{
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user