UserHasRole (was RE: [daisy] Dereference operator for query language)
Bruno Dumon
bruno at outerthought.org
Mon Jan 29 03:43:25 CST 2007
Hi Scott,
You can submit a patch to jira.
See
http://cocoondev.org/daisydocs-2_0/293.html
below the heading "Submitting a patch". If that information is not
clear, just ask further questions here. TIA for your patch.
PS: please start new mailing list threads for new topics.
On Mon, 2007-01-29 at 09:50 +1100, Scott Warren wrote:
> Hello,
>
> I have written a UserHasRole predicate for Daisy 1.5 as we had discussed
> before. This is useful for ACL where a Document has a Field that matches up
> with the Roles that a user may have. Example
>
> User A -> Role1, Role2, Role3
> User B -> RoleA, RoleB, *Role3
>
> Document A -> $RoleField = Role5, RoleT, RoleG
> Document B -> $RoleField = *Role3, RoleT, RoleG
>
> With the above configuration UserHasRole($RoleField) would be true for User
> B but not User A because User B has the role Role3 and the field has the
> value Role3
>
> I made it like the InCollection predicate and allow multiple fields eg
> UserHasRole($Field1, $Field2, $Field3)
>
> I know this is for 1.5 is this useful and if so how can I get you a patch?
>
> Regards
>
>
> Scott Warren
>
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org bruno at apache.org
More information about the daisy
mailing list