WorkspacePublishGate
Checks if a user is allowed to publish a record in a workspace
Not part of TYPO3 Core API.
Table of Contents
Methods
- isGranted() : bool
- Returns TRUE if the user has access to publish content from the workspace ID given.
Methods
isGranted()
Returns TRUE if the user has access to publish content from the workspace ID given.
public
isGranted(BackendUserAuthentication $user, mixed ...$conditions) : bool
Admin-users are always granted access to do this. If the workspace ID is 0 (live) all users have access also For custom workspaces it depends on whether the user is owner OR like with draft workspace if the user has access to Live workspace.
Parameters
- $user : BackendUserAuthentication
- $conditions : mixed