fix profil empty path

This commit is contained in:
Fred Tempez 2023-10-06 09:15:50 +02:00
parent a96bee2873
commit eea5e43149

View File

@ -679,8 +679,8 @@ class user extends common
$group = $this->getInput('profilAddGroup'); $group = $this->getInput('profilAddGroup');
$profil = count($this->getData(['profil', $group])); $profil = count($this->getData(['profil', $group]));
// Gère le chemin // Gère le chemin
$fileManager = $this->getInput('profilEditFileManager', helper::FILTER_BOOLEAN); $fileManager = $this->getInput('profilAddFileManager', helper::FILTER_BOOLEAN);
$path = $this->getInput('profilEditPath'); $path = $this->getInput('profilAddPath');
if ($group <= self::GROUP_ADMIN if ($group <= self::GROUP_ADMIN
&& $fileManager && $fileManager
&& empty($path) && empty($path)