final class WorkspacePermissions (View source)

Evaluated permissions a specific user has on a workspace, usually evaluated by the {ContentRepositoryAuthorizationService}

  • read: Permission to read data from the corresponding workspace (e.g. get hold of and traverse the content graph)
  • write: Permission to write to the corresponding workspace, including publishing a derived workspace to it
  • manage: Permission to change the metadata and roles of the corresponding workspace (e.g. change description/title or add/remove workspace roles)

Methods

create(bool $read, bool $write, bool $manage, string $reason)

No description

all(string $reason)

No description

manage(string $reason)

No description

none(string $reason)

No description

string
getReason()

Human-readable explanation for why this permission was evaluated

Details

static WorkspacePermissions create(bool $read, bool $write, bool $manage, string $reason)

No description

Parameters

bool $read

Permission to read data from the corresponding workspace (e.g. get hold of and traverse the content graph)

bool $write

Permission to write to the corresponding workspace, including publishing a derived workspace to it

bool $manage

Permission to change the metadata and roles of the corresponding workspace (e.g. change description/title or add/remove workspace roles)

string $reason

Human-readable explanation for why this permission was evaluated {\Neos\Neos\Domain\Model\getReason()}

Return Value

WorkspacePermissions

static WorkspacePermissions all(string $reason)

No description

Parameters

string $reason

Return Value

WorkspacePermissions

static WorkspacePermissions manage(string $reason)

No description

Parameters

string $reason

Return Value

WorkspacePermissions

static WorkspacePermissions none(string $reason)

No description

Parameters

string $reason

Return Value

WorkspacePermissions

string getReason()

Human-readable explanation for why this permission was evaluated

Return Value

string