ContentRepositoryAuthorizationService
final class ContentRepositoryAuthorizationService (View source)
Central point which does ContentRepository authorization decisions within Neos.
Constants
| private ROLE_NEOS_ADMINISTRATOR |
|
Methods
__construct(WorkspaceMetadataAndRoleRepository $metadataAndRoleRepository, PolicyService $policyService, PrivilegeManagerInterface $privilegeManager)
No description
getWorkspacePermissions(ContentRepositoryId $contentRepositoryId, WorkspaceName $workspaceName, array $roles, UserId|null $userId)
Determines the {WorkspacePermissions} a user with the specified {Role}s has for the specified workspace
getNodePermissions(Node $node, array $roles)
Determines the {NodePermissions} a user with the specified {Role}s has on the given {Node}
getVisibilityConstraints(ContentRepositoryId $contentRepositoryId, array $roles)
Determines the default {VisibilityConstraints} for the specified {Role}s
Details
__construct(WorkspaceMetadataAndRoleRepository $metadataAndRoleRepository, PolicyService $policyService, PrivilegeManagerInterface $privilegeManager)
No description
WorkspacePermissions
getWorkspacePermissions(ContentRepositoryId $contentRepositoryId, WorkspaceName $workspaceName, array $roles, UserId|null $userId)
Determines the {WorkspacePermissions} a user with the specified {Role}s has for the specified workspace
NodePermissions
getNodePermissions(Node $node, array $roles)
Determines the {NodePermissions} a user with the specified {Role}s has on the given {Node}
VisibilityConstraints
getVisibilityConstraints(ContentRepositoryId $contentRepositoryId, array $roles)
Determines the default {VisibilityConstraints} for the specified {Role}s