Skip to content

Commit b1b6415

Browse files
committed
change
2 parents 2013805 + fe0cec4 commit b1b6415

File tree

5 files changed

+269
-27
lines changed

5 files changed

+269
-27
lines changed

.github/workflows/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: CI
22

33
on:
4+
pull_request:
45
push:
56
branches: [ master ]
67
tags:

src/files/items.php

+114-15
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
'client.set-note',
4242
'purse.update',
4343
'purse.read',
44+
'purse.set-credit',
4445
],
4546
],
4647
'role:employee.manager' => [
@@ -93,9 +94,12 @@
9394
],
9495
'role:server.admin' => [
9596
'type' => 1,
96-
'description' => 'The role is generally assigned to reseller client who are in charge of client\'s servers administration',
97+
'description' => 'The role is generally assigned to reseller clients who are in charge of clients\' server administration',
9798
'children' => [
9899
'role:server.user',
100+
'server.read-wizzard',
101+
'server.read-legend',
102+
'server.read-system-info',
99103
'server.wizzard',
100104
'server.set-label',
101105
'consumption.read',
@@ -109,29 +113,35 @@
109113
'description' => 'The role is generally assigned to staff who are in charge of client\'s servers management',
110114
'children' => [
111115
'role:server.user',
116+
'server.read-wizzard',
112117
'server.enable-block',
113118
'server.disable-block',
114119
'server.pay',
115120
'server.sell',
116121
'server.set-label',
117122
'server.see-label',
123+
'server.read-legend',
124+
'server.read-financial-info',
125+
'server.read-manager',
126+
'server.read-billing',
118127
],
119128
],
120-
'role:staff-server.admin' => [
129+
'role:server.staff-admin' => [
121130
'type' => 1,
122131
'description' => 'The role is generally assigned to staff who are in charge of client\'s servers administration',
123132
'children' => [
124133
'role:server.admin',
125134
'server.create',
126135
'server.delete',
127136
'server.update',
137+
'server.assign-hub',
128138
],
129139
],
130140
'role:server.master' => [
131141
'type' => 1,
132142
'description' => 'The role is generally assigned to staff who have exceptionally high permissions on servers management',
133143
'children' => [
134-
'role:staff-server.admin',
144+
'role:server.staff-admin',
135145
'role:server.manager',
136146
],
137147
],
@@ -144,11 +154,18 @@
144154
],
145155
'role:hub.admin' => [
146156
'type' => 1,
147-
'description' => 'The role is generally assigned to staff who are in charge of client\'s hubs administration',
157+
'description' => 'The role is generally assigned to reseller staff who are in charge of clients\' hub administration',
148158
'children' => [
149159
'hub.read',
150-
'hub.create',
151160
'hub.update',
161+
],
162+
],
163+
'role:hub.staff-admin' => [
164+
'type' => 1,
165+
'description' => 'The role is generally assigned to staff who are in charge of client\'s hubs administration',
166+
'children' => [
167+
'role:hub.admin',
168+
'hub.create',
152169
'hub.delete',
153170
],
154171
],
@@ -164,7 +181,7 @@
164181
'type' => 1,
165182
'description' => 'The role is generally assigned to staff who have exceptionally high permissions on hubs management',
166183
'children' => [
167-
'role:hub.admin',
184+
'role:hub.staff-admin',
168185
'role:hub.manager',
169186
],
170187
],
@@ -459,6 +476,7 @@
459476
'description' => 'The role is generally assigned to staff who are in charge of bills management',
460477
'children' => [
461478
'bill.read',
479+
'charge.read',
462480
],
463481
],
464482
'role:bill.manager' => [
@@ -471,6 +489,7 @@
471489
'bill.delete',
472490
'deposit',
473491
'role:purse.manager',
492+
'charge.read',
474493
],
475494
],
476495
'role:bill.master' => [
@@ -526,6 +545,7 @@
526545
'price.update',
527546
'price.delete',
528547
'price.create',
548+
'plan.set-note',
529549
],
530550
],
531551
'role:plan.master' => [
@@ -856,7 +876,8 @@
856876
'description' => 'The role is generally assigned to staff who are in charge for the technical management of the resources',
857877
'children' => [
858878
'role:admin',
859-
'role:staff-server.admin',
879+
'role:server.staff-admin',
880+
'role:hub.staff-admin',
860881
],
861882
],
862883
'role:accounter' => [
@@ -1264,6 +1285,14 @@
12641285
'type' => 2,
12651286
'description' => 'Prohibits reading of the purse',
12661287
],
1288+
'purse.set-credit' => [
1289+
'type' => 2,
1290+
'description' => 'Allows set credit to the purse',
1291+
],
1292+
'deny:purse.set-credit' => [
1293+
'type' => 2,
1294+
'description' => 'Prohibits set credit to purse',
1295+
],
12671296
'employee.read' => [
12681297
'type' => 2,
12691298
'description' => 'Allows reading of the employee',
@@ -1384,6 +1413,30 @@
13841413
'type' => 2,
13851414
'description' => 'Prohibits set-note operation on the server',
13861415
],
1416+
'server.read-wizzard' => [
1417+
'type' => 2,
1418+
'description' => 'Allows reading info about wizzarding of the server',
1419+
],
1420+
'deny:server.read-wizzard' => [
1421+
'type' => 2,
1422+
'description' => 'Prohibits reading of the info about wizzarding of server',
1423+
],
1424+
'server.read-legend' => [
1425+
'type' => 2,
1426+
'description' => 'Allows reading legend of the server',
1427+
],
1428+
'deny:server.read-legend' => [
1429+
'type' => 2,
1430+
'description' => 'Prohibits reading legend of the server',
1431+
],
1432+
'server.read-system-info' => [
1433+
'type' => 2,
1434+
'description' => 'Allows reading system info of the server',
1435+
],
1436+
'deny:server.read-system-info' => [
1437+
'type' => 2,
1438+
'description' => 'Prohibits reading system info of the server',
1439+
],
13871440
'server.wizzard' => [
13881441
'type' => 2,
13891442
'description' => 'Allows wizzarding of the server',
@@ -1456,6 +1509,28 @@
14561509
'type' => 2,
14571510
'description' => 'Prohibits selling of the server',
14581511
],
1512+
'server.read-financial-info' => [
1513+
'type' => 2,
1514+
'description' => 'Allows reading financial info of the server',
1515+
],
1516+
'deny:server.read-financial-info' => [
1517+
'type' => 2,
1518+
'description' => 'Prohibits reading financial info of the server',
1519+
],
1520+
'server.read-manager' => [
1521+
'type' => 2,
1522+
],
1523+
'deny:server.read-manager' => [
1524+
'type' => 2,
1525+
],
1526+
'server.read-billing' => [
1527+
'type' => 2,
1528+
'description' => 'Allow reading of tariff and sale information of server',
1529+
],
1530+
'deny:server.read-billing' => [
1531+
'type' => 2,
1532+
'description' => 'Prohibits reading of tariff and sale information of server',
1533+
],
14591534
'server.create' => [
14601535
'type' => 2,
14611536
'description' => 'Allows creating of the server',
@@ -1480,21 +1555,21 @@
14801555
'type' => 2,
14811556
'description' => 'Prohibits updating of the server',
14821557
],
1483-
'hub.read' => [
1558+
'server.assign-hub' => [
14841559
'type' => 2,
1485-
'description' => 'Allows reading of the hub',
1560+
'description' => 'Allows assign hubs to server',
14861561
],
1487-
'deny:hub.read' => [
1562+
'deny:server.assign-hub' => [
14881563
'type' => 2,
1489-
'description' => 'Prohibits reading of the hub',
1564+
'description' => 'Prohibits assign hub to server',
14901565
],
1491-
'hub.create' => [
1566+
'hub.read' => [
14921567
'type' => 2,
1493-
'description' => 'Allows creating of the hub',
1568+
'description' => 'Allows reading of the hub',
14941569
],
1495-
'deny:hub.create' => [
1570+
'deny:hub.read' => [
14961571
'type' => 2,
1497-
'description' => 'Prohibits creating of the hub',
1572+
'description' => 'Prohibits reading of the hub',
14981573
],
14991574
'hub.update' => [
15001575
'type' => 2,
@@ -1504,6 +1579,14 @@
15041579
'type' => 2,
15051580
'description' => 'Prohibits updating of the hub',
15061581
],
1582+
'hub.create' => [
1583+
'type' => 2,
1584+
'description' => 'Allows creating of the hub',
1585+
],
1586+
'deny:hub.create' => [
1587+
'type' => 2,
1588+
'description' => 'Prohibits creating of the hub',
1589+
],
15071590
'hub.delete' => [
15081591
'type' => 2,
15091592
'description' => 'Allows deleting of the hub',
@@ -2074,6 +2157,14 @@
20742157
'type' => 2,
20752158
'description' => 'Prohibits reading of the bill',
20762159
],
2160+
'charge.read' => [
2161+
'type' => 2,
2162+
'description' => 'Allow reading of the charges',
2163+
],
2164+
'deny:charge.read' => [
2165+
'type' => 2,
2166+
'description' => 'Prohibits reading of the charges',
2167+
],
20772168
'bill.create' => [
20782169
'type' => 2,
20792170
'description' => 'Allows creating of the bill',
@@ -2218,6 +2309,14 @@
22182309
'type' => 2,
22192310
'description' => 'Prohibits creating of the price',
22202311
],
2312+
'plan.set-note' => [
2313+
'type' => 2,
2314+
'description' => 'Allows set note to plan',
2315+
],
2316+
'deny:plan.set-note' => [
2317+
'type' => 2,
2318+
'description' => 'Prohibits set note to plan',
2319+
],
22212320
'document.read' => [
22222321
'type' => 2,
22232322
'description' => 'Allows reading of the document',

0 commit comments

Comments
 (0)