We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23689c3 commit a7b2907Copy full SHA for a7b2907
src/Ubiquity/attributes/items/acl/Allow.php
@@ -21,19 +21,19 @@
21
class Allow extends BaseAttribute {
22
use BaseAnnotationTrait;
23
24
- public string $role;
+ public string|array $role;
25
26
public ?string $permission;
27
28
public ?string $resource;
29
30
/**
31
* Allow constructor.
32
- * @param string $role
+ * @param string|array $role
33
* @param string|null $resource
34
* @param string|null $permission
35
*/
36
- public function __construct(string $role, ?string $resource = null, ?string $permission = null) {
+ public function __construct(string|array $role, ?string $resource = null, ?string $permission = null) {
37
$this->role = $role;
38
$this->resource = $resource;
39
$this->permission = $permission;
0 commit comments