On 30 June 2011 16:58, Thomas Mortagne <thomas.mortagne(a)xwiki.com> wrote:
On Thu, Jun 30, 2011 at 10:39, Paul Harris
<harris.pc(a)gmail.com> wrote:
On 30 June 2011 16:20, Thomas Mortagne
<thomas.mortagne(a)xwiki.com>
wrote:
> On Thu, Jun 30, 2011 at 09:57, Paul Harris <harris.pc(a)gmail.com> wrote:
> > On 30 June 2011 15:49, Thomas Mortagne <thomas.mortagne(a)xwiki.com>
> wrote:
> >
> >> On Thu, Jun 30, 2011 at 09:39, Asiri Rathnayake
> >> <asiri.rathnayake(a)gmail.com> wrote:
> >> > Hi,
> >> >
> >> > On Thu, Jun 30, 2011 at 8:15 AM, Paul Harris
<harris.pc(a)gmail.com>
> >> wrote:
> >> >
> >> >> Hi guys,
> >> >>
> >> >> I installed the "Admin Tools" plugin
> >> >>
http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools
> >> >>
> >> >> And found that half the stuff didn't work anyway.
> >> >>
> >> >> Regardless, carrying on, I am hoping the User Rights tool will be
> >> helpful,
> >> >> however it can't seem to check the most important user:
> >> >> the Unregistered User
> >> >>
> >> >> And what is worse, I discovered by accident that the Unregistered
> User
> >> can
> >> >> access the space!
> >> >> For example, an unregistered user can access the
> /xwiki/Admin/RunQuery
> >> >> page,
> >> >> which could be used to run queries directly on the database, for
> example
> >> >> select * from xwikipreferences
> >> >>
> >> >> Does this give anyone else a heart attack too??
> >> >>
> >> >
> >> > I don't think this "extension" is part of the standard
XE/XEM
release.
> >> You
> >> > should be careful when installing extensions.
> >>
> >> Yes this extension is a contribution and is not written or supported
> >> by the XWiki Core team.
> >>
> >>
> >
> > It was suggested in the official XWiki Upgrade documentation,
> > see bottom of page here:
> >
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation
> >
> > I assumed the core team would only mention quality extensions in
> > documentation like that.
> >
> >
> >
> >
> >
> >> >> WHY is there no default "cannot view unless admin says
so" mode?
> >> >> This is a problem with all of my spaces. When I create a space, I
> want
> >> to
> >> >> then have to go and ALLOW people to access it. Not open by
default,
> >> that
> >> >> is
> >> >> much harder to configure.
> >> >>
> >> >
> >> > It's a wiki, and wikis are supposed to be open by default. If the
the
> >> > default behaviour is
"closed", it would be hard for a normal user
to
> >> create
> >> > a space and allow other users to contribute content (he'll have to
> wait
> >> for
> >> > the admin to open that space).
> >> >
> >> > This is only my personal understanding and I'm not a professional
> XWiki
> >> > user, so let's wait for some other views as well.
> >>
> >> Yes it's exactly that, wiki that only an admin can contribute to is
> >> not a wiki... maybe a CMS.
> >>
> >>
> > That is not my point.
> >
> > The wiki is open for editing, but only to registered users, and some
> spaces
> > are only available to a subset of those users. Its mostly to prevent
> > vandalism, plus some pages people want to only share with their
> particular
> > group of users.
> >
> > There may be many many users, and if its "open by default" then it
> becomes
> > more difficult to figure out who could have access to what.
> >
> >
> >
> >> Also making default XE distribution private is very easy you just
have
> to setup global rights and you are done for the
whole wiki.
>
>
How do I do that ?
Go to the general right management UI and only give rights to admin
group (no need to use deny, just set blank), that will implicitly
remove theses right for any other user. That's why users don't have
admin right for example in a default XE even if guest have it when you
did not yet imported XE and its default right configuration. Then you
can give specific rights space by space.
Don't forget to give view right on XWiki
space for users since a lot
of default applications actually have there code there so user need to
be able to view/execute it.
Have you tested this? It doesn't work for me...
I want the registered users to be able to see the Main/Welcome page, but
nothing else.
I did what you said, I have ticked View for XWikiAllGroup (not just
admin),
and left everyone else's View right as
Unticked.
You are describing me the default view right configuration here which
is the opposite of what I told you to do, I you want users to only
access spaces you decided them to access you should not give them view
right. Or are do you want that only for unregistered users ? Your
first mail is not very clear about that.
I want:
* unregistered users to see Main/WebHome and thats it.
* ALL users to only see Main/WebHome and thats it
* users in Group "ABC" to be able to see spaces "X" and "Y"
* users in Group "DEF" to be able to see spaces "X" and "Z"
How do I do that?
Then I added a green tick in the View right in the XWiki space for the
Unregistered User.
Be careful with that, as I explained you if you give view right only
to unregistered users then everyone else won't have it (except admins
of course).
When the unregistered user looks at the main welcome page, they can see
the
content, but the black-to-grey styling is broken
(I'm using the NightFall
colours with Colibri skin).
If you want unregistered user to see main page then it should have the
right to do so, main page is not in XWiki space so if you removed view
right globally it's not going to work unless you give view right on
Main space of Main.WebHome page itself.
I gave the unregistered user View access to Main.WebHome, AND to the Main
space, however the styling is still broken.
The frame around the text is just grey instead of the black-grey gradient.
thanks,
Paul