‪TYPO3CMS  ‪main
TYPO3\CMS\Workspaces\Authorization\WorkspacePublishGate Class Reference

Public Member Functions

 isGranted (BackendUserAuthentication $user,... $conditions)

Detailed Description

Checks if a user is allowed to publish a record in a workspace

Not part of TYPO3 Core API.

Definition at line 28 of file WorkspacePublishGate.php.

Member Function Documentation

◆ isGranted()

TYPO3\CMS\Workspaces\Authorization\WorkspacePublishGate::isGranted ( BackendUserAuthentication  $user,

Returns TRUE if the user has access to publish content from the workspace ID given. 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.

Definition at line 37 of file WorkspacePublishGate.php.

References TYPO3\CMS\Core\Authentication\BackendUserAuthentication\checkWorkspace(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\isAdmin(), TYPO3\CMS\Workspaces\Service\WorkspaceService\LIVE_WORKSPACE_ID, and TYPO3\CMS\Workspaces\Service\WorkspaceService\PUBLISH_ACCESS_ONLY_WORKSPACE_OWNERS.