@@ -87,7 +87,7 @@ public function testAccessSubclients()
87
87
$ this ->assertEqualsCanonicalizing ($ result , [
88
88
'role:almighty ' , 'access-subclients ' ,
89
89
'role:support ' , 'role:admin ' , 'role:accounter ' , 'role:manager ' ,
90
- 'role:reseller ' , 'role:owner ' , 'role:junior-manager ' , 'role:staff-admin ' ,
90
+ 'role:reseller ' , 'role:owner ' , 'role:junior-manager ' , 'role:staff-admin ' , ' role:client ' ,
91
91
]);
92
92
}
93
93
@@ -127,6 +127,7 @@ public function testClient()
127
127
'request.read ' , 'request.create ' , 'request.update ' , 'request.delete ' ,
128
128
'vhost.read ' , 'vhost.create ' , 'vhost.update ' , 'vhost.delete ' ,
129
129
'ip.read ' , 'service.read ' , 'client.notify ' ,
130
+ 'access-subclients ' ,
130
131
]);
131
132
}
132
133
@@ -533,7 +534,7 @@ public function testAlmighty()
533
534
534
535
public function testLimited ()
535
536
{
536
- $ this ->auth ->setAssignments ('role:client,deny:pay,deny:deposit,deny:domain.push,deny:server.pay,deny:server.read,deny:server.control-power,deny:server.control-system,deny:server.set-note,deny:ip.read,deny:service.read,deny:domain.delete-agp,deny:domain.set-nss ' , 'user:limited ' );
537
+ $ this ->auth ->setAssignments ('role:client,deny:pay,deny:deposit,deny:domain.push,deny:server.pay,deny:server.read,deny:server.control-power,deny:server.control-system,deny:server.set-note,deny:ip.read,deny:service.read,deny:domain.delete-agp,deny:domain.set-nss,deny:access-subclients ' , 'user:limited ' );
537
538
538
539
$ this ->assertAccesses ('user:limited ' , [
539
540
'have-goods ' ,
@@ -553,6 +554,7 @@ public function testLimited()
553
554
'mail.read ' , 'mail.create ' , 'mail.update ' , 'mail.delete ' ,
554
555
'request.read ' , 'request.create ' , 'request.update ' , 'request.delete ' ,
555
556
'vhost.read ' , 'vhost.create ' , 'vhost.update ' , 'vhost.delete ' , 'client.notify ' ,
557
+
556
558
]);
557
559
}
558
560
0 commit comments