Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/State/Attributes/AllowAnyOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Bottledcode\DurablePhp\State\EntityId;
use Bottledcode\DurablePhp\State\OrchestrationInstance;

#[Attribute(Attribute::IS_REPEATABLE)]
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_ALL)]
class AllowAnyOperation implements AccessControl
{
public function __construct(
Expand Down
2 changes: 1 addition & 1 deletion src/State/Attributes/AllowCreateAll.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

use Attribute;

#[Attribute]
#[Attribute(Attribute::TARGET_ALL)]
class AllowCreateAll implements AccessControl
{
public function __construct() {}
Expand Down
2 changes: 1 addition & 1 deletion src/State/Attributes/AllowCreateForAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

use Attribute;

#[Attribute]
#[Attribute(Attribute::TARGET_ALL)]
readonly class AllowCreateForAuth implements AccessControl
{
public function __construct(public int $userLimit = -1, public int $roleLimit = -1, public int $globalLimit = -1) {}
Expand Down
2 changes: 1 addition & 1 deletion src/State/Attributes/AllowCreateForRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

use Attribute;

#[Attribute(Attribute::IS_REPEATABLE)]
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_ALL)]
readonly class AllowCreateForRole implements AccessControl
{
public function __construct(public string $role) {}
Expand Down
2 changes: 1 addition & 1 deletion src/State/Attributes/AllowCreateForUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

use Attribute;

#[Attribute(Attribute::IS_REPEATABLE)]
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_ALL)]
class AllowCreateForUser implements AccessControl
{
public function __construct(public string $user) {}
Expand Down
2 changes: 1 addition & 1 deletion src/State/Attributes/AllowCreateFrom.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Bottledcode\DurablePhp\State\OrchestrationInstance;
use LogicException;

#[Attribute(Attribute::IS_REPEATABLE)]
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_ALL)]
class AllowCreateFrom implements AccessControl
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/State/Attributes/DenyAnyOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
use Bottledcode\DurablePhp\State\EntityId;
use Bottledcode\DurablePhp\State\OrchestrationInstance;

#[Attribute(Attribute::IS_REPEATABLE)]
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_ALL)]
class DenyAnyOperation implements AccessControl
{
public function __construct(
Expand Down