-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathauthorization-guards.global.php
More file actions
55 lines (52 loc) · 3.05 KB
/
Copy pathauthorization-guards.global.php
File metadata and controls
55 lines (52 loc) · 3.05 KB
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
<?php
declare(strict_types=1);
use Dot\Rbac\Guard\Guard\GuardInterface;
return [
'dot_authorization' => [
'protection_policy' => GuardInterface::POLICY_ALLOW,
'event_listeners' => [],
'guards_provider_manager' => [],
'guard_manager' => [],
'guards_provider' => [
'type' => 'ArrayGuards',
'options' => [
'guards' => [
[
'type' => 'RoutePermission',
'options' => [
'rules' => [
'admin::admin-login-form' => ['authenticated', 'unauthenticated'],
'admin::admin-login' => ['authenticated', 'unauthenticated'],
'admin::admin-create-form' => ['authenticated'],
'admin::admin-create' => ['authenticated'],
'admin::admin-delete-form' => ['authenticated'],
'admin::admin-delete' => ['authenticated'],
'admin::admin-edit-form' => ['authenticated'],
'admin::admin-edit' => ['authenticated'],
'admin::admin-list' => ['authenticated'],
'admin::admin-login-list' => ['authenticated'],
'admin::account-change-password' => ['authenticated'],
'admin::account-edit-form' => ['authenticated'],
'admin::account-edit' => ['authenticated'],
'admin::admin-logout' => ['authenticated'],
'app::index-redirect' => ['authenticated'],
'dashboard::dashboard-view' => ['authenticated'],
'page::components' => ['authenticated'],
'setting::setting-store' => ['authenticated'],
'setting::setting-view' => ['authenticated'],
'user::user-create-form' => ['authenticated'],
'user::user-create' => ['authenticated'],
'user::user-edit-form' => ['authenticated'],
'user::user-edit' => ['authenticated'],
'user::user-delete-form' => ['authenticated'],
'user::user-delete' => ['authenticated'],
'user::user-list' => ['authenticated'],
'user::user-avatar-edit' => ['authenticated'],
],
],
],
],
],
],
],
];