acl.global.php 780 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<?php

return [
    'acl' => [
        'default_role' => 'guest',
        'roles'        => [
            'guest' => [],
            'user'  => [],
            'admin' => ['user'],
        ],
        'resoures' => [],
        'guards'   => [
            'resources' => [],
            'callables' => [],
            'routes'    => [
                ['/', ['guest', 'user'], ['get']],
                ['/user/login', ['guest'], ['get', 'post']],
                ['/user/logout', ['user'], ['get']],
                ['/school', ['guest', 'user'], ['get']],
                ['/school/labs', ['guest', 'user'], ['get']],
                ['/school/staff', ['guest', 'user'], ['get']],
                ['/school/assets', ['guest', 'user'], ['get']],
            ],
        ],
    ],
];