From fec2494a24c823b1822dd8b009908ab52eab8a7d Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 12 Oct 2023 19:02:26 +0200 Subject: [PATCH] filtrage admin --- core/module/course/course.php | 2 ++ core/module/user/user.php | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/module/course/course.php b/core/module/course/course.php index b3e8a4b..75a9aab 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -387,7 +387,9 @@ class course extends common switch ($groupId) { case "-1": case "0": + break; case "3": + self::$courseGroups['30'] = 'Administrateur'; break; case "1": case "2": diff --git a/core/module/user/user.php b/core/module/user/user.php index 91dff2e..da831b3 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -442,7 +442,9 @@ class user extends common switch ($groupId) { case "-1": case "0": + break; case "3": + self::$courseGroups['30'] = 'Administrateur'; break; case "1": case "2": @@ -497,8 +499,8 @@ class user extends common $this->getData(['user', $userId, 'firstname']) . ' ' . $userLastNames, helper::translate(self::$groups[(int) $this->getData(['user', $userId, 'group'])]), empty($this->getData(['profil', $this->getData(['user', $userId, 'group']), $this->getData(['user', $userId, 'profil']), 'name'])) - ? helper::translate(self::$groups[(int) $this->getData(['user', $userId, 'group'])]) - : $this->getData(['profil', $this->getData(['user', $userId, 'group']), $this->getData(['user', $userId, 'profil']), 'name']), + ? helper::translate(self::$groups[(int) $this->getData(['user', $userId, 'group'])]) + : $this->getData(['profil', $this->getData(['user', $userId, 'group']), $this->getData(['user', $userId, 'profil']), 'name']), template::button('userEdit' . $userId, [ 'href' => helper::baseUrl() . 'user/edit/' . $userId, 'value' => template::ico('pencil'),