On Thu, Sep 18, 2014 at 11:33 AM, Paul Libbrecht <[email protected]> wrote:
> Caleb, Thomas,
>
> this is not about group members, these are separate objects, hence are 
> queried as separate HQL and SQL variables.
>
> What I see is queries for such a purpose as
>         "all documents with x/y/z which user A or members of group P,Q,R is 
> allowed see"
> For these, the normal way, apparently, has been to do a LIKE queries checking 
> for a substring (the user-name or group-name) in the group or member property 
> of the XWikiRights object.
>
> Are you telling me that there's a better way to do that?
> (e.g. that there would be different object for each member or group in the 
> stored XWikiRights?)

The right manager UI is storing only one user or group in each
XWikiRights object AFAIK (since quite some time actually, pretty much
since that UI exist I think).

>
> paul
>
> On 18 sept. 2014, at 11:16, Caleb James DeLisle <[email protected]> wrote:
>
>> Didn't we stop storing members of a group that way a long time ago?
>> (implying the LIKE queries are strictly for backward compat)
>
>
> On 18 sept. 2014, at 11:19, Thomas Mortagne <[email protected]> wrote:
>
>> We stopped storing it but it's still supported (we don't log warning
>> or stuff like that when something is still doing it) which mean some
>> extension might be doing it and of course existing rights might
>> contain it. The question is do we want to stop the support and
>> automatically migrate existing stuff (and maybe break some existing
>> extensions).
>>
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs



-- 
Thomas Mortagne
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to