[Flow] Entity Security Syntax

Christian Loock brainshack at gmail.com
Wed Mar 26 15:13:12 CET 2014


Thanks a lot!


2014-03-26 14:49 GMT+01:00 Alexander Berl <a.berl at outlook.com>:

> 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
> >
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>


More information about the Flow mailing list