Mailing List Archive

Access rights for Categories/Namespaces
Hello,
I recently started tinkering with MediaWiki, and I have a special case
that I couldn't find a solution to on the MetaWiki:

http://meta.wikimedia.org/wiki/Preventing_Access

I want to make a "HOWTOs" section on my wiki, and I want all anonymous
users to be able to read just that section, but not other sections'
pages. One method I thought would work was to create a
"Category:HOWTOs" and add pages into there, and then specify that
category be world readable:

# Pages anonymous (not-logged-in) users may see
$wgWhitelistRead = array ("Main Page", "Special:Userlogin",
"Wikipedia:Help", "Category:HOWTOs");

However this doesn't allow pages in the HOWTOs category to be seen
anonymously. I tried using a wildcard operator ' * ', but that didn't
work either.

Thanks for any help.
Re: Access rights for Categories/Namespaces [ In reply to ]
On Nov 15, 2004, at 10:50 AM, Luigi Montanez wrote:
> # Pages anonymous (not-logged-in) users may see
> $wgWhitelistRead = array ("Main Page", "Special:Userlogin",
> "Wikipedia:Help", "Category:HOWTOs");
>
> However this doesn't allow pages in the HOWTOs category to be seen
> anonymously. I tried using a wildcard operator ' * ', but that didn't
> work either.

The whitelist is a list of titles of particular pages that you want to
be accessible. If you want a lot of pages to be accessible, you should
generally simply have an open site.

-- brion vibber (brion @ pobox.com)
Re: Access rights for Categories/Namespaces [ In reply to ]
It should be noted (to anyone wondering this) that if you are a sysop
(which you probably are if you're messing with LocalSettings.php) that
you can lock a page so that only sysops can edit it.

On Mon, 15 Nov 2004 14:49:57 -0800, Brion Vibber <brion@pobox.com> wrote:
> On Nov 15, 2004, at 10:50 AM, Luigi Montanez wrote:
> > # Pages anonymous (not-logged-in) users may see
> > $wgWhitelistRead = array ("Main Page", "Special:Userlogin",
> > "Wikipedia:Help", "Category:HOWTOs");
> >
> > However this doesn't allow pages in the HOWTOs category to be seen
> > anonymously. I tried using a wildcard operator ' * ', but that didn't
> > work either.
>
> The whitelist is a list of titles of particular pages that you want to
> be accessible. If you want a lot of pages to be accessible, you should
> generally simply have an open site.
>
> -- brion vibber (brion @ pobox.com)
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l@Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
>
>
>


--
-------------------------------------------------------------------
http://endeavour.zapto.org/astro73/
Thank you to JosephM for inviting me to Gmail!
Re: Access rights for Categories/Namespaces [ In reply to ]
On Mon, 15 Nov 2004 14:49:57 -0800, Brion Vibber <brion@pobox.com> wrote:
> On Nov 15, 2004, at 10:50 AM, Luigi Montanez wrote:
> > # Pages anonymous (not-logged-in) users may see
> > $wgWhitelistRead = array ("Main Page", "Special:Userlogin",
> > "Wikipedia:Help", "Category:HOWTOs");
> >
> > However this doesn't allow pages in the HOWTOs category to be seen
> > anonymously. I tried using a wildcard operator ' * ', but that didn't
> > work either.
>
> The whitelist is a list of titles of particular pages that you want to
> be accessible. If you want a lot of pages to be accessible, you should
> generally simply have an open site.
>

I just want one category or namespace to be open and accessible.
Members of my group are going to want to access this information
quickly and easily from various access points (not just from their
home PC) so I don't want them to have to login every time. The other
parts of the wiki are sensitive enough to warrant blacklisting though.

Furthermore, I don't want go through the hassle of adding each new
page to the whitelist in the category if I can simply make all pages
in the category whitelisted.

Thanks.
Re: Access rights for Categories/Namespaces [ In reply to ]
On Nov 17, 2004, at 10:31 AM, Luigi Montanez wrote:
> I just want one category or namespace to be open and accessible.
[snip]
> Furthermore, I don't want go through the hassle of adding each new
> page to the whitelist in the category if I can simply make all pages
> in the category whitelisted.

As we've already stated, MediaWiki doesn't currently have a
configuration option to do that.

If you really want that and exactly that, you will have to modify the
code to do it. (This is one of the reasons we give you the code, so you
can modify it to suit your needs if you have to!) In particular, look
at the functions userCanEdit() and userCanRead() in includes/Title.php,
which implement the existing protection and whitelist options.

-- brion vibber (brion @ pobox.com)