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!
Just a bit curious, why are you using a wiki if
With it, I wanted to implement the following:
- guests can only have access to main page to create account
- new accounts also can only access main page
- 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
To me this is a standard CMS.
As for you question, you've got both createaccount and !createaccount for the group * effectively giving it no rights at all. Perhaps that would do something weird?
Regards,
Martin S
Because the data structure of a wiki is the most apropriate for our needs. I'm somewhat experienced with WordPress and could use some tweaks to use it as CMS, but that's not what we need.
We will produce content by multiuser, lots of chapters, many texts about the same topic, and wiki has all that. We also need revision management and users handling, all that is done automatically with wiki.
We just want to control access to it.
I removed the ['*']['createaccount'] = false (it was a code somebody gave me, I forgot about it :P ) but nothing changed. Guest can still enter pages and view them :(
Do you have any idea what may be wrong? Could it be that I did something without noticing when I was doing first configs? I will try to reinstall it and edit only the config file and these configs to see it changes, then I reinstall a few plugins.
Shieldfire wrote:
Just a bit curious, why are you using a wiki if
With it, I wanted to implement the following:
- guests can only have access to main page to create account
- new accounts also can only access main page
- 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
To me this is a standard CMS.
As for you question, you've got both createaccount and !createaccount for the group * effectively giving it no rights at all. Perhaps that would do something weird?
Regards,
Martin S _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org