Dear Sy Ali,
I had the same problem until I noticed that there is a link to a
patch at bug 1924, embedded in the Possible_solution (Namespace-Based
Restriction) section of Hidden Pages.
http://bugzilla.wikimedia.org/show_bug.cgi?id=1924
I modified the wiki so that it is more obvious. Check out:
http://meta.wikimedia.org/wiki/Hidden_pages#Possible_solution_.
28Namespace-Based_Restriction.29
If this works, you might want to delete your comments below on that
page:
* Patching what?
* This doesn't work for me. -- Sy / (talk) 15:31, 16 December
2005 (UTC)
Good luck!
Maurice
On Dec 15, 2005, at 15:39, Sy Ali wrote:
I've tried this and it doesn't work. I've also modified it and also
tried the example given in
http://meta.wikimedia.org/wiki/Hidden_pages
.. nothing works.
Any user can edit and see any document in that namespace.
On 11/29/05, Schmidt, Torsten
<torsten.schmidt(a)tecdoc.net> wrote:
>
http://entwicklung/mediawiki/index.php/testnamespace:Restriction_Test
>
> Here is my Part of the LocalSettings.php where i've done this:
> 221 # create Test-ExtraNamespace:
> 222 $wgExtraNamespaces =
> 223 array(100 => "testnamespace",
> 224 101 => "testnamespace_talk"
> 225 );
> 226
> 227 # restrict access to this extra-namespace
> 228 $wgRestrictedNamespaces =
> 229 array(100 => "testgroup",
> 230 101 => "testgroup"
> 231 );
> 232 # allow only 'sysop' and 'testgroup' for
> restrictedNamespace 'testnamespace'
> 233 $wgGroupPermissions['sysop']['testgroup'] = true;
> 234 $wgGroupPermissions['testgroup']['testgroup'] = true;
> 235
> 236 $wgGroupPermissions['testgroup']['read'] = true;
> 237 #$wgGroupPermissions['testgroup' ]['edit'] = false;
> 238
>
> Then, you can create a Page using the following link:
>
> [[testnamespace:foobar]]
>
> After this, the page 'foobar' can be viewed / edited only by the
> groupes you defined above.
>
> Regards,
>
> Torsten