Zwii 13003
This commit is contained in:
parent
2c12067131
commit
4b51a26669
@ -16,7 +16,7 @@
|
|||||||
class blog extends common
|
class blog extends common
|
||||||
{
|
{
|
||||||
|
|
||||||
const VERSION = '7.0';
|
const VERSION = '7.1';
|
||||||
const REALNAME = 'Blog';
|
const REALNAME = 'Blog';
|
||||||
const DELETE = true;
|
const DELETE = true;
|
||||||
const UPDATE = '0.0';
|
const UPDATE = '0.0';
|
||||||
@ -27,15 +27,15 @@ class blog extends common
|
|||||||
const EDIT_ALL = 'all';
|
const EDIT_ALL = 'all';
|
||||||
|
|
||||||
public static $actions = [
|
public static $actions = [
|
||||||
'add' => self::GROUP_TEACHER,
|
'add' => self::GROUP_EDITOR,
|
||||||
'comment' => self::GROUP_TEACHER,
|
'comment' => self::GROUP_EDITOR,
|
||||||
'commentApprove' => self::GROUP_TEACHER,
|
'commentApprove' => self::GROUP_EDITOR,
|
||||||
'commentDelete' => self::GROUP_TEACHER,
|
'commentDelete' => self::GROUP_EDITOR,
|
||||||
'commentDeleteAll' => self::GROUP_TEACHER,
|
'commentDeleteAll' => self::GROUP_EDITOR,
|
||||||
'config' => self::GROUP_TEACHER,
|
'config' => self::GROUP_EDITOR,
|
||||||
'option' => self::GROUP_TEACHER,
|
'option' => self::GROUP_EDITOR,
|
||||||
'delete' => self::GROUP_TEACHER,
|
'delete' => self::GROUP_EDITOR,
|
||||||
'edit' => self::GROUP_TEACHER,
|
'edit' => self::GROUP_EDITOR,
|
||||||
'index' => self::GROUP_VISITOR,
|
'index' => self::GROUP_VISITOR,
|
||||||
'rss' => self::GROUP_VISITOR
|
'rss' => self::GROUP_VISITOR
|
||||||
];
|
];
|
||||||
@ -697,7 +697,7 @@ class blog extends common
|
|||||||
ksort(self::$users);
|
ksort(self::$users);
|
||||||
foreach (self::$users as $userId => &$userFirstname) {
|
foreach (self::$users as $userId => &$userFirstname) {
|
||||||
// Les membres ne sont pas éditeurs, les exclure de la liste
|
// Les membres ne sont pas éditeurs, les exclure de la liste
|
||||||
if ($this->getData(['user', $userId, 'group']) < self::GROUP_TEACHER) {
|
if ($this->getData(['user', $userId, 'group']) < self::GROUP_EDITOR) {
|
||||||
unset(self::$users[$userId]);
|
unset(self::$users[$userId]);
|
||||||
}
|
}
|
||||||
$userFirstname = $userFirstname . ' ' . $this->getData(['user', $userId, 'lastname']) . ' (' . self::$groupEdits[$this->getData(['user', $userId, 'group'])] . ')';
|
$userFirstname = $userFirstname . ' ' . $this->getData(['user', $userId, 'lastname']) . ' (' . self::$groupEdits[$this->getData(['user', $userId, 'group'])] . ')';
|
||||||
@ -740,7 +740,6 @@ class blog extends common
|
|||||||
else {
|
else {
|
||||||
// Soumission du formulaire
|
// Soumission du formulaire
|
||||||
if (
|
if (
|
||||||
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
|
|
||||||
$this->isPost()
|
$this->isPost()
|
||||||
) {
|
) {
|
||||||
// Check la captcha
|
// Check la captcha
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Version 7.1
|
||||||
|
- Permission lors de la validation d'un formulaire
|
||||||
# Version 7.0
|
# Version 7.0
|
||||||
- Gestion des permissions intégrée dans le module
|
- Gestion des permissions intégrée dans le module
|
||||||
# version 6.9
|
# version 6.9
|
||||||
|
@ -1 +1 @@
|
|||||||
{"name":"blog","realName":"Blog","version":"6.9","update":"0.0","delete":true,"dataDirectory":""}
|
{"name":"blog","realName":"Blog","version":"7.1","update":"0.0","delete":true,"dataDirectory":""}
|
@ -1,3 +1,5 @@
|
|||||||
|
# Version 4.1
|
||||||
|
- Corrige un email non envoyé après validation d'un formulaire.
|
||||||
# Version 4.0
|
# Version 4.0
|
||||||
- Gestion des permissions intégrée dans le module.
|
- Gestion des permissions intégrée dans le module.
|
||||||
- Date au format européen.
|
- Date au format européen.
|
||||||
|
@ -1 +1 @@
|
|||||||
{"name":"form","realName":"Formulaire","version":"3.10","update":"0.0","delete":true,"dataDirectory":""}
|
{"name":"form","realName":"Formulaire","version":"4.1","update":"0.0","delete":true,"dataDirectory":""}
|
@ -17,18 +17,18 @@
|
|||||||
class form extends common
|
class form extends common
|
||||||
{
|
{
|
||||||
|
|
||||||
const VERSION = '4.0';
|
const VERSION = '4.1';
|
||||||
const REALNAME = 'Formulaire';
|
const REALNAME = 'Formulaire';
|
||||||
const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json)
|
const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json)
|
||||||
|
|
||||||
public static $actions = [
|
public static $actions = [
|
||||||
'config' => self::GROUP_TEACHER,
|
'config' => self::GROUP_EDITOR,
|
||||||
'option' => self::GROUP_TEACHER,
|
'option' => self::GROUP_EDITOR,
|
||||||
'data' => self::GROUP_TEACHER,
|
'data' => self::GROUP_EDITOR,
|
||||||
'delete' => self::GROUP_TEACHER,
|
'delete' => self::GROUP_EDITOR,
|
||||||
'deleteall' => self::GROUP_TEACHER,
|
'deleteall' => self::GROUP_EDITOR,
|
||||||
'index' => self::GROUP_VISITOR,
|
'index' => self::GROUP_VISITOR,
|
||||||
'export2csv' => self::GROUP_TEACHER,
|
'export2csv' => self::GROUP_EDITOR,
|
||||||
];
|
];
|
||||||
|
|
||||||
public static $data = [];
|
public static $data = [];
|
||||||
@ -395,7 +395,6 @@ class form extends common
|
|||||||
|
|
||||||
// Soumission du formulaire
|
// Soumission du formulaire
|
||||||
if (
|
if (
|
||||||
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
|
|
||||||
$this->isPost()
|
$this->isPost()
|
||||||
) {
|
) {
|
||||||
// Check la captcha
|
// Check la captcha
|
||||||
|
Loading…
Reference in New Issue
Block a user