Fix regression in permission test for list of holiday
This commit is contained in:
parent
3df149045d
commit
ff54b1cb5a
1 changed files with 6 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ if ($user->socid > 0) { // Protection if external user
|
|||
//$socid = $user->socid;
|
||||
accessforbidden();
|
||||
}
|
||||
$result = restrictedArea($user, 'holiday', $id, '', 'readall');
|
||||
$result = restrictedArea($user, 'holiday', $id);
|
||||
|
||||
$action = GETPOST('action', 'aZ09') ?GETPOST('action', 'aZ09') : 'view';
|
||||
$massaction = GETPOST('massaction', 'alpha');
|
||||
|
|
@ -76,6 +76,11 @@ $hookmanager->initHooks(array('leavemovementlist'));
|
|||
$arrayfields = array();
|
||||
$arrayofmassactions = array();
|
||||
|
||||
if (!$user->hasRight('holiday', 'readall')) {
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Actions
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue