PHP Class Neos\Eel\Helper\SecurityHelper

Inheritance: implements Neos\Eel\ProtectedContextAwareInterface
Datei anzeigen Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$securityContext Neos\Flow\Security\Context

Public Methods

Method 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 method

All methods are considered safe
public allowsCallOfMethod ( string $methodName ) : boolean
$methodName string
return boolean

getAccount() public method

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

hasRole() public method

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
return boolean TRUE, if a role with the given string representation was found

Property Details

$securityContext protected_oe property

protected Context,Neos\Flow\Security $securityContext
return Neos\Flow\Security\Context