mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
fix: read employee and write employee
This commit is contained in:
@@ -255,7 +255,7 @@ class modHRM extends DolibarrModules
|
||||
$this->rights[$r][1] = 'Read employee'; // Permission label
|
||||
$this->rights[$r][3] = 0; // Permission by default for new user (0/1)
|
||||
$this->rights[$r][4] = 'read_employee';
|
||||
$this->rights[$r][5] = 'read'; // In php code, permission will be checked by test if ($user->rights->hrm->compare_advance->read)
|
||||
$this->rights[$r][5] = 'read'; // In php code, permission will be checked by test if ($user->rights->hrm->read_employee->read)
|
||||
$r++;
|
||||
|
||||
// Write employee
|
||||
@@ -263,7 +263,7 @@ class modHRM extends DolibarrModules
|
||||
$this->rights[$r][1] = 'Write employee'; // Permission label
|
||||
$this->rights[$r][3] = 0; // Permission by default for new user (0/1)
|
||||
$this->rights[$r][4] = 'write_employee';
|
||||
$this->rights[$r][5] = 'write'; // In php code, permission will be checked by test if ($user->rights->hrm->compare_advance->read)
|
||||
$this->rights[$r][5] = 'write'; // In php code, permission will be checked by test if ($user->rights->hrm->write_employee->write)
|
||||
$r++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user