PHP Class Neos\Eel\Helper\SecurityHelper

Inheritance: implements Neos\Eel\ProtectedContextAwareInterface
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$securityContext Neos\Flow\Security\Context

Méthodes publiques

Méthode Description
allowsCallOfMethod ( string $methodName ) : boolean All methods are considered safe
getAccount ( ) : Account | null Get the account of the first authenticated token.
hasRole ( string $roleIdentifier ) : boolean Returns TRUE, if at least one of the currently authenticated accounts holds a role with the given identifier, also recursively.

Method Details

allowsCallOfMethod() public méthode

All methods are considered safe
public allowsCallOfMethod ( string $methodName ) : boolean
$methodName string
Résultat boolean

getAccount() public méthode

Get the account of the first authenticated token.
public getAccount ( ) : Account | null
Résultat Neos\Flow\Security\Account | null

hasRole() public méthode

Returns TRUE, if at least one of the currently authenticated accounts holds a role with the given identifier, also recursively.
public hasRole ( string $roleIdentifier ) : boolean
$roleIdentifier string The string representation of the role to search for
Résultat boolean TRUE, if a role with the given string representation was found

Property Details

$securityContext protected_oe property

protected Context,Neos\Flow\Security $securityContext
Résultat Neos\Flow\Security\Context