j4kim / cret-vaillant-22

Visite interactive du Crêt-Vaillant 22
https://cret-vaillant.ch/22
0 stars 0 forks source link

editor group in cockpit #8

Closed j4kim closed 4 years ago

j4kim commented 4 years ago

https://github.com/serjoscha87/cockpit_GROUPS

j4kim commented 4 years ago

Je m'en suis sorti sans utiliser l'add-on. Fichier de configuration:

return [
    'app.name' => 'K-Linou',
    'groups' => [
        'author' => [
            '$admin' => false,
            'cockpit' => [
                'backend' => true,
                'finder' => false
            ],
            'collections' => [
                'manage' => true
            ],
            'singletons' => [
                'manage' => true
            ]
        ]
    ]
];

Attention une erreur de syntaxe dans ce fichier et plus rien ne marche...

Ensuite il faut sur chaque collection et singleton indiquer que le groupe author peut créer etc...