Hi,
I have a custome namespace defined with
$wgExtraNamespaces[150] = "Manual";
$wgExtraNamespaces[151] = "Manual_talk";
I would like to restrict this namespace to certain groups. From
http://www.mediawiki.org/wiki/Manual:Preventing_access I figured out the
following lines
$wgNamespaceProtection[150] = array( 'editManual');
$wgGroupPermissions['sysop']['editManual'] = true;
And it's working fine. With this only sysop can edit. But I want to
restrict the view access also. For that I changed the lines like below:
$wgNamespaceProtection[150] = array( 'viewManual','editManual');
$wgGroupPermissions['*']['viewManual'] = false;
$wgGroupPermissions['sysop']['viewManual'] = true;
$wgGroupPermissions['sysop']['editManual'] = true;
But it seems $wgGroupPermissions['*']['viewManual'] = false; has no
effect as anyone can see the pages in Manual namespace. So, how can I
restrict the view access also?
Another problem is that, when my group names contain spaces, the
permissions are not applied. i.e. if I use something like.
$wgNamespaceProtection[150] = array( 'editManual');
$wgGroupPermissions['Documentation Team']['editManual'] = true;
Users in the Documentation Team group can't edit these articles. I tried
the group name in lowercase as well. I'm using SimpleSecurity extension.
So my group names are actually defined in an article "Groups".
Can't we use group names with spaces in the $wgGroupPermissions array?
Regards,
Jack Eapen C
SunTec Knowledge Centre
------------------------------------------------------------------------
------------
"Try and fail, but don't fail to try"
This electronic mail (including any attachment thereto) may be confidential and privileged
and is intended only for the individual or entity named above. Any unauthorized use,
printing, copying, disclosure or dissemination of this communication may be subject to
legal restriction or sanction. Accordingly, if you are not the intended recipient, please
notify the sender by replying to this email immediately and delete this email (and any
attachment thereto) from your computer system...Thank You