Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limiting the rights of a user group in mediawiki 1.6.7

Status
Not open for further replies.

nsglists

IS-IT--Management
Jul 20, 2006
57
US
Kindly excuse me if this is not the right forum to post to this post. Kindly also tell me where exactly post this queston to..

I have the following settings.

For disabling anonymous users, in LocalSettings.php I used,
$wgWhitelistRead = array ( “Main Page”, “Special:Userlogin”, “-” );

$wgGroupPermissions[‘*’][‘read’] = false;
$wgGroupPermissions[‘*’][‘edit’] = false;

I understand that the above code is necessary to anonymous users not being able to read or edit pages, as well as only being able to see the ‘Main Page’ and the ‘UserLogin’ page.

Now to limit the rights of a user group, in LocalSettings.php I used,
$wgGroupPermissions[‘limiteduser’][‘move’] = false;
$wgGroupPermissions[‘limiteduser’][‘read’] = true;
$wgGroupPermissions[‘limiteduser’][‘edit’] = false;
$wgGroupPermissions[‘limiteduser’][‘createpage’] = false;
$wgGroupPermissions[‘limiteduser’][‘createtalk’] = false;
$wgGroupPermissions[‘limiteduser’][‘upload’] = false;
$wgGroupPermissions[‘limiteduser’][‘reupload’] = false;
$wgGroupPermissions[‘limiteduser’][‘reupload-shared’] = false;
$wgGroupPermissions[‘limiteduser’][‘minoredit’] = false;

But it doesnt work. An member of limiteduser group is still able to edit pages, even though the only thing the user should be able to do is read. My intention is that anonymous users can only read Main page and login page (this part works), after that I wanted authenticated users who are part of limited user group to be able to read the rest of the pages, but not to do anything else.

Also, how do I tie this in with namespaces?

What am I missing here?
Kindly advice.
Thanks.
 
This forum in Tek-Tips is dedicated to PHP questions in general. If you have questions about a specific PHP-writtent app, I strongly recommend that you post them in the support site for that app.

I think that MediaWiki is supported at


Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top