mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Fix permission check from 'lire' to 'read'
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user