ModuleAccessGateVoter

final class \TYPO3\CMS\Backend\Security\Authorization\ModuleAccessGateVoter

Extends
Voter

Decides on accessing a backend module by asking the module access gate registered for its access value: for an access value that is not one of TYPO3 Core, and for one whose Core gate an extension replaced. This keeps the deprecated gates of extensions working, while every module access is decided by the authorization checker, so that voters of extensions can restrict it as well.

A gate requires the backend user object the principal was established for. Without it, e.g. for a principal of a token, access is denied.

Tags

extends

Attributes

#[AsSecurityVoter]

Table of Contents

Methods

__construct()  : mixed
supportsAttribute()  : bool
supportsType()  : bool
supports()  : bool
voteOnAttribute()  : bool

Methods

supportsAttribute()

public supportsAttribute(string $attribute) : bool

Parameters

$attribute : string

Return values

bool

supportsType()

public supportsType(string $subjectType) : bool

Parameters

$subjectType : string

Return values

bool

supports()

protected supports(string $attribute, mixed $subject) : bool

Parameters

$attribute : string
$subject : mixed

Return values

bool

voteOnAttribute()

protected voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token[, Vote|null $vote = null ]) : bool

Parameters

$attribute : string
$subject : mixed
$token : TokenInterface
$vote : Vote|null = null

Return values

bool
On this page