split acl

parent f9f928f9
......@@ -14,8 +14,7 @@ return [
'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']],
......
<?php
/**
* 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
*/
return [
'acl' => [
'guards' => [
'routes' => [
['/user/login', ['guest'], ['get', 'post']],
['/user/logout', ['user'], ['get']],
],
],
],
];
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment