fix profil edit permanent

This commit is contained in:
Fred Tempez 2023-12-01 15:45:59 +01:00
parent 88fd7e5d49
commit a0dca415b5
1 changed files with 2 additions and 1 deletions

View File

@ -648,6 +648,7 @@ class user extends common
) {
$fileManager = false;
}
// Effacer l'ancien profil si le rang a changé
if (
$profil !== $oldProfil &&
$this->deleteData(['profil', $group, $oldProfil])
@ -658,7 +659,7 @@ class user extends common
$data = [
'name' => $this->getInput('profilEditName', helper::FILTER_STRING_SHORT, true),
'readonly' => false,
'permanent' => $group === '1' ? true : false,
'permanent' => $profil === '1' ? true : false,
'comment' => $this->getInput('profilEditComment', helper::FILTER_STRING_SHORT, true),
'filemanager' => $fileManager,
'file' => [