Fix permission check from 'lire' to 'read'
This commit is contained in:
parent
e2595b5117
commit
dc6c593187
1 changed files with 1 additions and 1 deletions
|
|
@ -1048,7 +1048,7 @@ class Setup extends DolibarrApi
|
|||
global $langs;
|
||||
$langs->loadLangs(array('holiday'));
|
||||
|
||||
if (!DolibarrApiAccess::$user->hasRight('holiday', 'lire')) {
|
||||
if (!DolibarrApiAccess::$user->hasRight('holiday', 'read')) {
|
||||
throw new RestException(403);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue