-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpermission.php
executable file
·62 lines (57 loc) · 1.13 KB
/
permission.php
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
* Access Controll List (ACL) Config Variable for Core Framework
* @var array
*/
define('ROLE_GUEST', 1);
define('ROLE_ADMIN', 5);
define('ROLE_MOD', 10);
define('ROLE_MEMBER', 15);
return [
ROLE_GUEST => [
'Admin' => array (
'login:*',
'notfound:*',
),
'Common' => array (
'index:*',
'install:*',
),
],
ROLE_ADMIN => [
'Admin' => array (
'index:*',
'login:*',
'dashboard:*',
'codegenerator:*',
'logs:*',
'user:*',
'notfound:*',
),
'Common' => array (
'index:*',
'user:*',
'install:*',
),
],
ROLE_MOD => [
'Admin' => array (
'index:*',
'login:*',
'dashboard:*',
'user:*',
),
'Common' => array (
'index:*',
'user:*',
),
],
ROLE_MEMBER => [
'Admin' => array (
'index:*',
),
'Common' => array (
'index:*',
),
],
];