Sunday, April 8, 2007

How to make mediawiki not editable by public?

In LocalSettings.php, add the following

/* Disable anonymous user from creating account and editing
pages */
$wgGroupPermissions['*' ]['createaccount'] = false;
$wgGroupPermissions['*' ]['read'] = true;
$wgGroupPermissions['*' ]['edit'] = false;
$wgGroupPermissions['*' ]['createpage'] = false;
$wgGroupPermissions['*' ]['createtalk'] = false;

/* Allow user to login */
$wgWhitelistRead = array ("Special:Userlogin");

/* Make sure that user have to have a valid email address
before edit */
$wgEmailConfirmToEdit = true;

No comments: