[xwiki-users] Virtual wiki's and groupmembership (implemented on 0.9.840 due for upgrade to 1.0b2).

Sergiu Dumitriu sergiu.dumitriu at gmail.com
Wed Jan 10 21:09:49 CET 2007


AFAIK:
The API you are using requires programming rights, and these rights are only
possible for users in the main wiki. Try this:
- Create an account on the main wiki, with an username that does not exist
in the other virtual wikis
- Grant Programming rights to that user
- Login with that user
- Edit and save the pages that list the users

Now it should work.

Sergiu Dumitriu

On 1/10/07, Esbach, Brandon <Esbachb at tycoelectronics.com> wrote:
>
>  Hi all,
>
> Me again, this time with another groups/permission issue.
>
> On my wiki's I use
> "$context.xWiki.groupService.listGroupsForUser($context.user,
> $context.context))" to get a list of groups a user is a member of.  This has
> worked very well up until implementing a virtual wiki setup…since
> implementing a virtual wiki setup, I've found the listGroupsForUser only
> works for the main wiki (the one pointing to xwiki database), and not for
> the "other" wiki's hanging on the same server.
>
> The users are definitely regarded as being in the group as a permission
> check works for the group (eg if only group ABC has right EDIT for a space,
> the user is granted the right only if they are in the group).
>
> But, the listGroupsForUser always returns no groups, even for XWiki.Admin- even though every user has at least one group.
>
> *Brandon Esbach*
> *Software Engineer*
> *M/A-Com Eurotec Operations*
> *LoughMahon Technology Park,*
> *Skehard Road,*
> *Blackrock,*
> *Cork, Ireland*
> *Tel  +353 21 4808305*
>
>
> --
> You receive this message as a subscriber of the xwiki-users at objectweb.orgmailing list.
> To unsubscribe: mailto:xwiki-users-unsubscribe at objectweb.org
> For general help: mailto:sympa at objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/users/attachments/20070110/47a64aee/attachment-0001.htm 


More information about the users mailing list