Fix pb de chemin pour les rédacteurs avec droit RFM

This commit is contained in:
Fred Tempez 2024-01-04 23:54:40 +01:00
parent 824ab8401a
commit 18228b1b8e
1 changed files with 3 additions and 3 deletions

View File

@ -692,7 +692,7 @@ class user extends common
'rename' => $this->getInput('profilEditFolderRename', helper::FILTER_BOOLEAN),
'copycut' => $this->getInput('profilEditFolderCopycut', helper::FILTER_BOOLEAN),
'chmod' => $this->getInput('profilEditFolderChmod', helper::FILTER_BOOLEAN),
'path' => $path,
'path' => preg_replace('/^\\./', '', $path), // Supprime le point pour préserver le chemin
],
'page' => [
'add' => $this->getInput('profilEditPageAdd', helper::FILTER_BOOLEAN),
@ -841,7 +841,7 @@ class user extends common
'rename' => $this->getInput('profilAddFolderRename', helper::FILTER_BOOLEAN),
'copycut' => $this->getInput('profilAddFolderCopycut', helper::FILTER_BOOLEAN),
'chmod' => $this->getInput('profilAddFolderChmod', helper::FILTER_BOOLEAN),
'path' => $path,
'path' => preg_replace('/^\\./', '', $path), // Supprime le point pour préserver le chemin
],
'page' => [
'add' => $this->getInput('profilAddPageAdd', helper::FILTER_BOOLEAN),