This is being shown in case you have access to the given privilege
Everything inside the
This is being shown in case you have access.
This is being displayed in case you do not have access.
Everything inside the "then" tag is displayed if you have access.
Otherwise, everything inside the "else"-tag is displayed.
{f:security.ifAccess(privilegeTarget: 'someTarget', parameters: '{param1: \'value1\'}', then: 'has access', else: 'has no access')}
Datei anzeigen
Open project: neos/flow-development-collection
Class Usage Examples
Method | Description | |
---|---|---|
initializeArguments ( ) | Initializes the "then" and "else" arguments | |
render ( ) : string |
renders |
|
renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : mixed |
Method | Description | |
---|---|---|
evaluateCondition ( null $arguments = null, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : boolean | ||
getPrivilegeManager ( |
protected static evaluateCondition ( null $arguments = null, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : boolean | ||
$arguments | null | |
$renderingContext | TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface | |
return | boolean |
protected static getPrivilegeManager ( |
||
$renderingContext | ||
return | Neos\Flow\Security\Authorization\PrivilegeManagerInterface |
public initializeArguments ( ) |
public static renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : mixed | ||
$arguments | array | |
$renderChildrenClosure | Closure | |
$renderingContext | TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface | |
return | mixed |