Update evaluation.class.php
This commit is contained in:
parent
c2894fb8a9
commit
5686ffd9fa
@ -189,11 +189,13 @@ class Evaluation extends CommonObject
|
||||
if (empty($conf->global->MAIN_SHOW_TECHNICAL_ID) && isset($this->fields['rowid'])) {
|
||||
$this->fields['rowid']['visible'] = 0;
|
||||
}
|
||||
if (empty($conf->multicompany->enabled) && isset($this->fields['entity'])) {
|
||||
if (isModEnabled('multicompany') && isset($this->fields['entity'])) {
|
||||
$this->fields['entity']['enabled'] = 0;
|
||||
}
|
||||
|
||||
if (empty($user->rights->hrm->evaluation->readall)) $this->fields['fk_user']['type'].= ':rowid IN('.$this->db->sanitize(implode(", ", $user->getAllChildIds(1))).')';
|
||||
if (empty($user->rights->hrm->evaluation->readall)) {
|
||||
$this->fields['fk_user']['type'].= ':rowid IN('.$this->db->sanitize(implode(", ", $user->getAllChildIds(1))).')';
|
||||
}
|
||||
|
||||
$this->date_eval = dol_now();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user