From 3bc31b9d73fd83d28817eeabd0061c5a00e63b02 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 27 Jul 2023 09:34:55 +0200 Subject: [PATCH] user edit permanent sauf si position 1 --- core/module/user/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/module/user/user.php b/core/module/user/user.php index 45286491..c01cd184 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -552,7 +552,7 @@ class user extends common $data = [ 'name' => $this->getInput('profilEditName', helper::FILTER_STRING_SHORT, true), 'readonly' => false, - 'permanent' => false, + 'permanent' => $this->getInput('profilEditGroup', helper::FILTER_STRING_LONG, true) === '1' ? true : false, 'comment' => $this->getInput('profilEditComment', helper::FILTER_STRING_SHORT, true), 'filemanager' => $this->getInput('profilEditFileManager', helper::FILTER_BOOLEAN), 'file' => [