RootLevelCapability implements SchemaCapabilityInterface

Read onlyYes
FinalYes

Capability to understand the flag within - security.ignoreRootLevelRestriction

Internal

This is an experimental implementation and might change until TYPO3 v13 LTS

Table of Contents

Interfaces

SchemaCapabilityInterface
A semantic interface for any kind of capability.

Constants

TYPE_BOTH  = -1
TYPE_ONLY_ON_PAGES  = 1
TYPE_ONLY_ON_ROOTLEVEL  = 0

Properties

$ignoreRootLevelRestriction  : bool
$rootLevelType  : int

Methods

__construct()  : mixed
canAccessRecordsOnRootLevel()  : bool
Allows non-admin users to access records that on the root-level (page-id 0), thus bypassing this usual restriction.
canExistOnPages()  : bool
canExistOnRootLevel()  : bool
getRootLevelType()  : int
shallIgnoreRootLevelRestriction()  : bool

Constants

TYPE_ONLY_ON_PAGES

public mixed TYPE_ONLY_ON_PAGES = 1

TYPE_ONLY_ON_ROOTLEVEL

public mixed TYPE_ONLY_ON_ROOTLEVEL = 0

Properties

$ignoreRootLevelRestriction

protected bool $ignoreRootLevelRestriction

$rootLevelType

protected int $rootLevelType

Methods

__construct()

public __construct(int $rootLevelType, bool $ignoreRootLevelRestriction) : mixed
Parameters
$rootLevelType : int
$ignoreRootLevelRestriction : bool

canAccessRecordsOnRootLevel()

Allows non-admin users to access records that on the root-level (page-id 0), thus bypassing this usual restriction.

public canAccessRecordsOnRootLevel() : bool
Return values
bool

canExistOnPages()

public canExistOnPages() : bool
Return values
bool

canExistOnRootLevel()

public canExistOnRootLevel() : bool
Return values
bool

getRootLevelType()

public getRootLevelType() : int
Return values
int

shallIgnoreRootLevelRestriction()

public shallIgnoreRootLevelRestriction() : bool
Return values
bool

        
On this page

Search results