diff --git a/core/module/install/ressource/defaultdata.php b/core/module/install/ressource/defaultdata.php index dabad596..03ff078d 100644 --- a/core/module/install/ressource/defaultdata.php +++ b/core/module/install/ressource/defaultdata.php @@ -660,7 +660,7 @@ class init extends common { 'state' => true, 'title' => 'Mon premier article', 'userId' => '', // Géré au moment de l'installation - 'editConsent' => 'group', + 'editConsent' => 'all', 'commentMaxlength' => '500', 'commentApproved' => false, 'commentClose' => false, @@ -677,7 +677,7 @@ class init extends common { 'state' => true, 'title' => 'Mon deuxième article', 'userId' => '', // Géré au moment de l'installation - 'editConsent' => 'group', + 'editConsent' => 'all', 'commentMaxlength' => '500', 'commentApproved' => false, 'commentClose' => false, @@ -694,7 +694,7 @@ class init extends common { 'state' => true, 'title' => 'Mon troisième article', 'userId' => '', // Géré au moment de l'installation - 'editConsent' => 'group', + 'editConsent' => 'all', 'commentMaxlength' => '500', 'commentApproved' => false, 'commentClose' => true, diff --git a/module/blog/blog.php b/module/blog/blog.php index f32e28f2..11ab9724 100644 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -119,7 +119,7 @@ class blog extends common { 'state' => $this->getInput('blogAddState', helper::FILTER_BOOLEAN), 'title' => $this->getInput('blogAddTitle', helper::FILTER_STRING_SHORT, true), 'userId' => $newuserid, - 'editConsent' => $this->getInput('blogEditConsent') === self::EDIT_GROUP ? $this->getUser('group') : self::EDIT_OWNER, + 'editConsent' => $this->getInput('blogAddConsent') === self::EDIT_GROUP ? $this->getUser('group') : $this->getInput('blogAddConsent'), 'commentMaxlength' => $this->getInput('blogAddCommentMaxlength'), 'commentApproved' => $this->getInput('blogAddCommentApproved', helper::FILTER_BOOLEAN), 'commentClose' => $this->getInput('blogAddCommentClose', helper::FILTER_BOOLEAN), diff --git a/module/blog/view/edit/edit.php b/module/blog/view/edit/edit.php index 8d39381e..1b8c37a6 100644 --- a/module/blog/view/edit/edit.php +++ b/module/blog/view/edit/edit.php @@ -95,7 +95,7 @@
'Edition / Suppression', - 'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'editConsent']), + 'selected' => is_numeric($this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'editConsent'])) ? $module::EDIT_GROUP : $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'editConsent']), 'help' => 'Les utilisateurs des groupes supérieurs accèdent à l\'article sans restriction' ]); ?>