[Hippo-cms7-user] Re: List users in editor widget
j.reijn at onehippo.com
Mon May 17 17:03:15 CEST 2010
Yes. You can see this also sort of happening for the memberships of a user
in the permissions dialog:
On my local filesystem:
See the constructor (it's a fixme though).
It's an impersonated session which is used for the getMemberships method.
On Mon, May 17, 2010 at 4:13 PM, Niels van Kampenhout <
niels at nielsvankampenhout.com> wrote:
> Jeroen Reijn wrote:
> > On Wed, May 12, 2010 at 10:50 PM, Niels van Kampenhout <
> > niels at nielsvankampenhout.com> wrote:
> >> I created a ValueProvider for the selection plugins, that lists all
> >> active
> >> users in a specific user group. I couldn't find anything useful in the
> >> JCR
> >> API, so right now, it directly reads from
> >> /hippo:configuration/hippo:groups
> >> and /hippo:configuration/hippo:users, but obviously this only works when
> >> logged in as admin.
> > I've seen constructions like this in some projects. Most of the time I
> > that they follow a pattern that is also found in the CMS source code by
> > impersonating the workflow or admin user. That way you can always get the
> > full list (but I've heard that this impersonation is not really
> > 'supported').
> Interesting, do you know any particular class(es) in the CMS source code
> that I could take a look at?
> Niels van Kampenhout
> Open Source Consultant
> View this message in context:
> Sent from the Hippo CMS 7 mailing list archive at Nabble.com.
> Hippo-cms7-user mailing list and forums
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Hippo-cms7-user