-
Notifications
You must be signed in to change notification settings - Fork 3
/
acl.php
29 lines (23 loc) · 1018 Bytes
/
acl.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
<?php
use Antares\Acl\RoleActionList;
use Antares\Model\Role;
use Antares\Acl\Action;
$actionNames = [
'Activity Dashboard', 'Activity Delete Log', 'Activity Show Details',
'Report Generate', 'Report View', 'Report Delete', 'Report Html', 'Report Download',
'Analyzer Dashboard', 'Analyzer Run', 'Analyzer Server', 'Analyzer System',
'Analyzer Modules', 'Analyzer Version', 'Analyzer Database', 'Analyzer Logs',
'Analyzer Components', 'Analyzer Checksum',
'Report Generate', 'Report View', 'Report Download', 'Report Delete', 'Report Html', 'Report Send', 'Report Generate Standalone',
'View Logs',
'Request List', 'Request Clear', 'Request Show',
'Error List', 'Error Details', 'Error Delete', 'Error Download',
'History List', 'History Show', 'History Delete'
];
$actions = [];
foreach($actionNames as $actionName) {
$actions[] = new Action('', $actionName);
}
$permissions = new RoleActionList;
$permissions->add(Role::admin()->name, $actions);
return $permissions;