fix profil edit permanent
This commit is contained in:
parent
88fd7e5d49
commit
a0dca415b5
@ -648,6 +648,7 @@ class user extends common
|
|||||||
) {
|
) {
|
||||||
$fileManager = false;
|
$fileManager = false;
|
||||||
}
|
}
|
||||||
|
// Effacer l'ancien profil si le rang a changé
|
||||||
if (
|
if (
|
||||||
$profil !== $oldProfil &&
|
$profil !== $oldProfil &&
|
||||||
$this->deleteData(['profil', $group, $oldProfil])
|
$this->deleteData(['profil', $group, $oldProfil])
|
||||||
@ -658,7 +659,7 @@ class user extends common
|
|||||||
$data = [
|
$data = [
|
||||||
'name' => $this->getInput('profilEditName', helper::FILTER_STRING_SHORT, true),
|
'name' => $this->getInput('profilEditName', helper::FILTER_STRING_SHORT, true),
|
||||||
'readonly' => false,
|
'readonly' => false,
|
||||||
'permanent' => $group === '1' ? true : false,
|
'permanent' => $profil === '1' ? true : false,
|
||||||
'comment' => $this->getInput('profilEditComment', helper::FILTER_STRING_SHORT, true),
|
'comment' => $this->getInput('profilEditComment', helper::FILTER_STRING_SHORT, true),
|
||||||
'filemanager' => $fileManager,
|
'filemanager' => $fileManager,
|
||||||
'file' => [
|
'file' => [
|
||||||
|
Loading…
Reference in New Issue
Block a user