Fix warning
This commit is contained in:
parent
bd1366ab82
commit
f973dbca0b
@ -133,13 +133,13 @@ $object->fields = dol_sort_array($object->fields, 'position');
|
|||||||
$arrayfields = dol_sort_array($arrayfields, 'position');
|
$arrayfields = dol_sort_array($arrayfields, 'position');
|
||||||
|
|
||||||
// Permissions
|
// Permissions
|
||||||
$permissiontoread = $user->rights->hrm->evaluation->read;
|
$permissiontoread = $user->hasRight('hrm', 'evaluation', 'read');
|
||||||
$permissiontoreadall = $user->rights->hrm->evaluation->readall;
|
$permissiontoreadall = $user->hasRight('hrm', 'evaluation', 'readall');
|
||||||
$permissiontoadd = $user->rights->hrm->evaluation->write;
|
$permissiontoadd = $user->hasRight('hrm', 'evaluation', 'write');
|
||||||
$permissiontodelete = $user->rights->hrm->evaluation->delete;
|
$permissiontodelete = $user->hasRight('hrm', 'evaluation', 'delete');
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
if (empty($conf->hrm->enabled)) {
|
if (!isModEnabled('hrm')) {
|
||||||
accessforbidden('Module not enabled');
|
accessforbidden('Module not enabled');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user