WorkspacePermissions
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
static WorkspacePermissions
create(bool $read, bool $write, bool $manage, string $reason)
No description
static WorkspacePermissions
all(string $reason)
No description
static WorkspacePermissions
manage(string $reason)
No description
static WorkspacePermissions
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
static WorkspacePermissions
all(string $reason)
No description
static WorkspacePermissions
manage(string $reason)
No description
static WorkspacePermissions
none(string $reason)
No description
string
getReason()
Human-readable explanation for why this permission was evaluated