diff --git a/core/module/course/course.php b/core/module/course/course.php index 32f4230..80b7c91 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -23,17 +23,17 @@ class course extends common 'index' => self::GROUP_EDITOR, 'edit' => self::GROUP_EDITOR, 'manage' => self::GROUP_EDITOR, - 'users' => self::GROUP_EDITOR, + 'users' => self::GROUP_EDITOR, // fait 'usersAdd' => self::GROUP_EDITOR, - 'userDelete' => self::GROUP_EDITOR, 'usersDelete' => self::GROUP_EDITOR, + 'usersHistoryExport' => self::GROUP_EDITOR, //fait + 'userDelete' => self::GROUP_EDITOR, 'userHistory' => self::GROUP_EDITOR, - 'usersHistoryExport' => self::GROUP_EDITOR, 'userHistoryExport' => self::GROUP_EDITOR, 'backup' => self::GROUP_EDITOR, 'restore' => self::GROUP_EDITOR, 'clone' => self::GROUP_ADMIN, - 'add' => self::GROUP_ADMIN, + 'add' => self::GROUP_ADMIN, 'delete' => self::GROUP_ADMIN, 'category' => self::GROUP_ADMIN, 'categoryAdd' => self::GROUP_ADMIN, diff --git a/core/module/user/user.php b/core/module/user/user.php index a653fd6..95576eb 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -708,6 +708,10 @@ class user extends common ], 'course' => [ 'index' => $this->getInput('profilEditCourseIndex', helper::FILTER_BOOLEAN), + 'manage' => $this->getInput('profilEditCourseIndex', helper::FILTER_BOOLEAN), // Les deux fonctions sont groupées + 'users' => $this->getInput('profilEditCourseUsers', helper::FILTER_BOOLEAN), + 'userHistory' => $this->getInput('profilEditCourseUserHistory', helper::FILTER_BOOLEAN), + 'userHistoryExport' => $this->getInput('profilEditCourseUserExport', helper::FILTER_BOOLEAN), ] ]; diff --git a/core/module/user/view/profilEdit/profilEdit.php b/core/module/user/view/profilEdit/profilEdit.php index bf1b0f3..d4c8f37 100644 --- a/core/module/user/view/profilEdit/profilEdit.php +++ b/core/module/user/view/profilEdit/profilEdit.php @@ -92,6 +92,47 @@ ]); ?> +
+
+ $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'edit']) + ]); ?> +
+
+
+
+ $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'users']) + ]); ?> +
+
+ $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'userHistory']) + ]); ?> +
+
+ $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'userHistoryExport']) + ]); ?> +
+
+
+
+ $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'users']) + ]); ?> +
+
+ $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'userHistory']) + ]); ?> +
+
+ $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'course', 'userHistoryExport']) + ]); ?> +
+