Hello guys.
I created a wiki and I need it to be private. I added this code to LocalSettings.php
$wgGroupPermissions['*']['createaccount'] = true; $wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['minoredit'] = false; $wgGroupPermissions['*']['rollback'] = false; $wgGroupPermissions['*']['trackback'] = false;
$wgGroupPermissions['*']['createpage'] = false; $wgGroupPermissions['*']['createtalk'] = false; $wgGroupPermissions['*']['delete'] = false; $wgGroupPermissions['*']['bigdelete'] = false; $wgGroupPermissions['*']['deletedhistory'] = false; $wgGroupPermissions['*']['undelete'] = false; $wgGroupPermissions['*']['move'] = false;
$wgGroupPermissions['*']['patrol'] = false; $wgGroupPermissions['*']['protect'] = false; $wgGroupPermissions['*']['reupload'] = false; $wgGroupPermissions['*']['reupload-shared'] = false;
$wgGroupPermissions['*']['suppressredirect'] = false; $wgGroupPermissions['*']['upload'] = false; $wgGroupPermissions['*']['upload_by_url'] = false;
$wgGroupPermissions['membros']['createaccount'] = true; $wgGroupPermissions['membros']['read'] = true; $wgGroupPermissions['membros']['edit'] = false; $wgGroupPermissions['membros']['minoredit'] = false; $wgGroupPermissions['membros']['rollback'] = false; $wgGroupPermissions['membros']['trackback'] = true;
$wgGroupPermissions['membros']['createpage'] = false; $wgGroupPermissions['membros']['createtalk'] = true; $wgGroupPermissions['membros']['delete'] = false; $wgGroupPermissions['membros']['bigdelete'] = false; $wgGroupPermissions['membros']['deletedhistory'] = false; $wgGroupPermissions['membros']['undelete'] = false; $wgGroupPermissions['membros']['move'] = false;
$wgGroupPermissions['membros']['patrol'] = true; $wgGroupPermissions['membros']['protect'] = false; $wgGroupPermissions['membros']['reupload'] = false; $wgGroupPermissions['membros']['reupload-shared'] = false;
$wgGroupPermissions['membros']['suppressredirect'] = false; $wgGroupPermissions['membros']['upload'] = false; $wgGroupPermissions['membros']['upload_by_url'] = false;
$wgGroupPermissions['autores']['createaccount'] = true; $wgGroupPermissions['autores']['read'] = true; $wgGroupPermissions['autores']['edit'] = true; $wgGroupPermissions['autores']['minoredit'] = true; $wgGroupPermissions['autores']['rollback'] = true; $wgGroupPermissions['autores']['trackback'] = true;
$wgGroupPermissions['autores']['createpage'] = true; $wgGroupPermissions['autores']['createtalk'] = true; $wgGroupPermissions['autores']['delete'] = false; $wgGroupPermissions['autores']['bigdelete'] = false; $wgGroupPermissions['autores']['deletedhistory'] = false; $wgGroupPermissions['autores']['undelete'] = true; $wgGroupPermissions['autores']['move'] = true;
$wgGroupPermissions['autores']['patrol'] = true; $wgGroupPermissions['autores']['protect'] = true; $wgGroupPermissions['autores']['reupload'] = false; $wgGroupPermissions['autores']['reupload-shared'] = false;
$wgGroupPermissions['autores']['suppressredirect'] = false; $wgGroupPermissions['autores']['upload'] = false; $wgGroupPermissions['autores']['upload_by_url'] = false;
$wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createaccount'] = false;
$wgWhitelistRead = array ( "Main Page", "Special:Userlogin", "Wikipedia:Help");
With it, I wanted to implement the following:
1) guests can only have access to main page to create account 2) new accounts also can only access main page 3) accounts added to 'membros' group can read any page, but not edit or create pages 4) accounts added to 'autores' can read, edit and create pages
I wanted also to block access of history viewing, but coun't find out how to do it.
The wiki is temporary hosted at http://mental.conscienciaplanetaria.com/wiki/ I was able to block editing from guests and members, but guests are still able to read pages.
Could anybody see on the code what I'm doing wrong and how to block pages viewing to '*'?
tnx!