acl.global.php 1.84 KB
Newer Older
1
<?php
2 3 4 5 6 7 8
/**
 * gredu_labs
 * 
 * @link https://github.com/eellak/gredu_labs for the canonical source repository
 * @copyright Copyright (c) 2008-2015 Greek Free/Open Source Software Society (https://gfoss.ellak.gr/)
 * @license GNU GPLv3 http://www.gnu.org/licenses/gpl-3.0-standalone.html
 */
9 10 11 12 13

return [
    'acl' => [
        'default_role' => 'guest',
        'roles'        => [
14 15 16 17
            'guest'  => [],
            'user'   => [],
            'school' => ['user'],
            'admin'  => ['user'],
18 19 20 21 22 23 24
        ],
        'resoures' => [],
        'guards'   => [
            'resources' => [],
            'callables' => [],
            'routes'    => [
                ['/', ['guest', 'user'], ['get']],
kanellov's avatar
kanellov committed
25
                ['/about', ['guest', 'user'], ['get']],
Vassilis Kanellopoulos's avatar
Vassilis Kanellopoulos committed
26
                ['/school', ['school'], ['get']],
Vassilis Kanellopoulos's avatar
Vassilis Kanellopoulos committed
27
                ['/school/labs', ['school'], ['get', 'post', 'delete']],
Vassilis Kanellopoulos's avatar
Vassilis Kanellopoulos committed
28 29 30
                ['/school/staff', ['school'], ['get', 'post', 'delete']],
                ['/school/assets', ['school'], ['get', 'post', 'delete']],
                ['/school/labs/attachment', ['school'], ['get', 'delete']],
Vassilis Kanellopoulos's avatar
Vassilis Kanellopoulos committed
31
                ['/school/software', ['school'], ['get', 'post', 'delete']],
32
                ['/application-form', ['school'], ['get', 'post']],
33
                ['/application-form/submit-success', ['school'], ['get']],
34
                ['/application-form/report', ['school'], ['get']],
35
                ['/tpe_survey', ['school'], ['get', 'post']],
36
                ['/tpe_survey/total-teachers', ['school'], ['post']],
37
                ['/forum', ['guest', 'user'], ['get']],
Vassilis Kanellopoulos's avatar
Vassilis Kanellopoulos committed
38
                ['/sch_sync/sync', ['school'], ['get']],
39
                ['/in_numbers', ['guest', 'user'], ['get']],
Vassilis Kanellopoulos's avatar
Vassilis Kanellopoulos committed
40
                ['/export/csv/edulabs_{type}.csv', ['guest', 'user'], ['get']],
Vassilis Kanellopoulos's avatar
Vassilis Kanellopoulos committed
41
                ['/open-data', ['guest', 'user'], ['get']],
42 43 44 45
            ],
        ],
    ],
];