Constantes
This commit is contained in:
parent
e7ffeeefbd
commit
f96e7377f8
@ -14,6 +14,12 @@
|
|||||||
|
|
||||||
class blog extends common {
|
class blog extends common {
|
||||||
|
|
||||||
|
// Objets
|
||||||
|
// Propriétaire - groupe Editeur - groupe Admin
|
||||||
|
const EDIT_ALL = '011'; // Groupes Editeurs et admins
|
||||||
|
const EDIT_OWNER_ADMIN = '101'; // Propriétaire + groupe admin
|
||||||
|
const EDIT_ADMIN = '001'; // Groupe des admin
|
||||||
|
|
||||||
public static $actions = [
|
public static $actions = [
|
||||||
'add' => self::GROUP_MODERATOR,
|
'add' => self::GROUP_MODERATOR,
|
||||||
'comment' => self::GROUP_MODERATOR,
|
'comment' => self::GROUP_MODERATOR,
|
||||||
@ -69,6 +75,13 @@ class blog extends common {
|
|||||||
'10000' => '10000'
|
'10000' => '10000'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// Permission d'un article
|
||||||
|
public static $articlePermissions = [
|
||||||
|
self::EDIT_ALL => 'Groupes des éditeurs et des administrateurs',
|
||||||
|
self::EDIT_OWNER_ADMIN => 'Auteur et groupe des administrateurs',
|
||||||
|
self::EDIT_ADMIN => 'Groupe des administrateurs',
|
||||||
|
];
|
||||||
|
|
||||||
public static $users = [];
|
public static $users = [];
|
||||||
|
|
||||||
const BLOG_VERSION = '2.04';
|
const BLOG_VERSION = '2.04';
|
||||||
|
Loading…
Reference in New Issue
Block a user