From 8e9c356188012bc8496bf2e1992aa6995baf41af Mon Sep 17 00:00:00 2001 From: F TEMPEZ Date: Wed, 14 Feb 2024 08:16:46 +0100 Subject: [PATCH] 1.6.00 Esapces : Add profil --- core/module/user/user.php | 35 +++++++++++++ core/module/user/view/profilAdd/profilAdd.php | 52 +++++++++++++++++++ 2 files changed, 87 insertions(+) diff --git a/core/module/user/user.php b/core/module/user/user.php index 50dcbb2..0f85a52 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -888,6 +888,41 @@ class user extends common ], 'user' => [ 'edit' => $this->getInput('profilAddUserEdit', helper::FILTER_BOOLEAN), + ], + 'course' => [ + 'tutor' => $this->getInput('profilAddCourseTutor', helper::FILTER_BOOLEAN), + 'index' => $this->getInput('profilAddCourseUsers', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseUserHistory', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseUserExport', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseUserAdd', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseUsersAdd', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseUserDelete', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseUsersDelete', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseEdit', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseBackup', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseRestore', helper::FILTER_BOOLEAN), + + 'manage' => $this->getInput('profilAddCourseUsers', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseUserHistory', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseUserExport', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseUserAdd', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseUsersAdd', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseUserDelete', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseUsersDelete', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseEdit', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseBackup', helper::FILTER_BOOLEAN) + || $this->getInput('profilAddCourseRestore', helper::FILTER_BOOLEAN), + // La suite + 'users' => $this->getInput('profilAddCourseUsers', helper::FILTER_BOOLEAN), + 'userHistory' => $this->getInput('profilAddCourseUserHistory', helper::FILTER_BOOLEAN), + 'userHistoryExport' => $this->getInput('profilAddCourseUserHistoryExport', helper::FILTER_BOOLEAN), + 'userAdd' => $this->getInput('profilAddCourseUserAdd', helper::FILTER_BOOLEAN), + 'usersAdd' => $this->getInput('profilAddCourseUsersAdd', helper::FILTER_BOOLEAN), + 'userDelete' => $this->getInput('profilAddCourseUserDelete', helper::FILTER_BOOLEAN), + 'usersDelete' => $this->getInput('profilAddCourseUsersDelete', helper::FILTER_BOOLEAN), + 'edit' => $this->getInput('profilAddCourseEdit', helper::FILTER_BOOLEAN), + 'backup' => $this->getInput('profilAddCourseBackup', helper::FILTER_BOOLEAN), + 'restore' => $this->getInput('profilAddCourseRestore', helper::FILTER_BOOLEAN), ] ]; diff --git a/core/module/user/view/profilAdd/profilAdd.php b/core/module/user/view/profilAdd/profilAdd.php index 8df2c3d..4bfc647 100644 --- a/core/module/user/view/profilAdd/profilAdd.php +++ b/core/module/user/view/profilAdd/profilAdd.php @@ -58,6 +58,58 @@ +getUrl(2) >= self::GROUP_EDITOR): ?> +
+
+
+

+ +

+
+
+ +
+
+
+
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+
+
+