diff --git a/core/module/user/user.php b/core/module/user/user.php index 1dcbe5ee..d3faf9ca 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -588,9 +588,16 @@ class user extends common 'option' => $this->getInput('profilEditBlogOption', helper::FILTER_BOOLEAN), 'comment' => $this->getInput('profilEditBlogComment', helper::FILTER_BOOLEAN), 'commentApprouve' => $this->getInput('profilEditBlogCommentApprouve', helper::FILTER_BOOLEAN), - 'commentdelete' => $this->getInput('profilEditBlogCommentDelete', helper::FILTER_BOOLEAN), + 'commentDelete' => $this->getInput('profilEditBlogCommentDelete', helper::FILTER_BOOLEAN), 'commentDeleteAll' => $this->getInput('profilEditBlogCommentDeleteAll', helper::FILTER_BOOLEAN), ], + 'news' => [ + 'add' => $this->getInput('profilEditNewsAdd', helper::FILTER_BOOLEAN), + 'edit' => $this->getInput('profilEditNewsEdit', helper::FILTER_BOOLEAN), + 'delete' => $this->getInput('profilEditNewsDElete', helper::FILTER_BOOLEAN), + 'config' => $this->getInput('profilEditNewsConfig', helper::FILTER_BOOLEAN), + 'option' => $this->getInput('profilEditNewsOption', helper::FILTER_BOOLEAN), + ], ] ]); @@ -673,9 +680,16 @@ class user extends common 'option' => $this->getInput('profilAddBlogOption', helper::FILTER_BOOLEAN), 'comment' => $this->getInput('profilAddBlogComment', helper::FILTER_BOOLEAN), 'commentApprouve' => $this->getInput('profilAddBlogCommentApprouve', helper::FILTER_BOOLEAN), - 'commentdelete' => $this->getInput('profilAddBlogCommentDelete', helper::FILTER_BOOLEAN), + 'commentDelete' => $this->getInput('profilAddBlogCommentDelete', helper::FILTER_BOOLEAN), 'commentDeleteAll' => $this->getInput('profilAddBlogCommentDeleteAll', helper::FILTER_BOOLEAN), ], + 'news' => [ + 'add' => $this->getInput('profilAddNewsAdd', helper::FILTER_BOOLEAN), + 'edit' => $this->getInput('profilAddNewsEdit', helper::FILTER_BOOLEAN), + 'delete' => $this->getInput('profilAddNewsDElete', helper::FILTER_BOOLEAN), + 'config' => $this->getInput('profilAddNewsConfig', helper::FILTER_BOOLEAN), + 'option' => $this->getInput('profilAddNewsOption', helper::FILTER_BOOLEAN), + ], ] ]); // Valeurs en sortie diff --git a/core/module/user/view/profilAdd/profilAdd.js.php b/core/module/user/view/profilAdd/profilAdd.js.php index a2844afb..538c6e17 100644 --- a/core/module/user/view/profilAdd/profilAdd.js.php +++ b/core/module/user/view/profilAdd/profilAdd.js.php @@ -36,4 +36,12 @@ $(document).ready(function () { } }); + $("#profilAddPageEdit").change(function () { + if (!$(this).prop("checked")) { + $(".containerModule").prop("disabled", true); + } else { + $(".containerModule").prop("disabled", false); + } + }); + }); diff --git a/core/module/user/view/profilAdd/profilAdd.php b/core/module/user/view/profilAdd/profilAdd.php index 7123e71a..0eb59356 100644 --- a/core/module/user/view/profilAdd/profilAdd.php +++ b/core/module/user/view/profilAdd/profilAdd.php @@ -78,44 +78,75 @@ -