Fix permission check from 'lire' to 'read'

This commit is contained in:
Charlène Benke 2025-12-03 09:29:48 +01:00 committed by GitHub
parent e2595b5117
commit dc6c593187
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}