acl.global.php 590 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?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/login-sso', ['guest'], ['get']],
                ['/user/logout', ['user'], ['get']],
            ],
        ],
    ],
];