Ok. So what I'm trying to achieve is the following:
We have spaces which has user (view/edit) groups and an admin group for that
space.
I'm currently writing a rights admin tool which shows the admin group users
the spaces which they are the admin of, and they can then select a space to
which they
On Wed, Dec 9, 2015 at 8:33 AM, gervwyk wrote:
> How do I get all the spaces for which the current user has access in a java
> component?
>
Why do you need this? There can be many spaces. Starting with XWiki 7.2 you
can have nested documents and each nested document has an associated space
which
How do I get all the spaces for which the current user has access in a java
component?
I have the following:
List lstSpaces = new ArrayList();
XWikiContext xcontext = this.xwikiContextProvider.get();
XWiki xwiki = xcontext.getWiki();
lstSpaces = xwiki.getSpaces(xcontext);
Although this successfu