[Flow] Entity Security Syntax
Alexander Berl
a.berl at outlook.com
Wed Mar 26 14:49:53 CET 2014
Hi Christian,
The syntax for the definitions in the Policy.yaml is the same as for the
AOP Pointcut Expressions used within the evalute designator:
See
http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartIII/AspectOrientedProgramming.html#evaluate
The supported operators are:
==, !=, <=, >=, <, > as well as "in" (element in collection), "contains"
(collection contains element) and "matches" (collection matches
collection, ie. they have the same items)
In all cases a collection can also be a simple array.
Regards,
Alexander
Am 25.03.2014 14:07, schrieb Christian Loock:
> Hello,
>
> is there a documentation of what can be done inside the entity definition
> inside your Policy.yam
>
> For example:
>
> I have a field languages in my security context and want to compare and
> language object to this collection. Somthing like this:
>
> Acme_MyPackage_Language: 'in_array(current.securityContext.languages, this')
>
> Would this be possible and where can i read what syntax is supported?
>
> Greetings,
>
> Christian
>
More information about the Flow
mailing list