- Now allowing privilege from enums
This commit is contained in:
parent
66a9345e06
commit
d881a404bd
|
@ -5,7 +5,7 @@ namespace Notes\Security\Attribute;
|
||||||
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS)]
|
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS)]
|
||||||
class Taxus implements \Notes\Attribute {
|
class Taxus implements \Notes\Attribute {
|
||||||
public function __construct(
|
public function __construct(
|
||||||
public null|string $privilege = null,
|
public null|string|\BackedEnum $privilege = null,
|
||||||
public null|string $module = null,
|
public null|string $module = null,
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue