Guest Read-only

From MSME Knowledge Management - Assumption University
Revision as of 22:28, 5 April 2016 by Omie (talk | contribs)
Jump to navigation Jump to search

By default mediawiki allow non-user (guest) to edit content. To avoid letting this happen. we need to configure file "LocalSettings.php" by adding:

1. Not allow guest edit

$wgGroupPermissions['*']['edit'] = false;

2. Only user can edit

$wgGroupPermissions['user']['edit'] = true;

3. (optional) we do not want guest to create user account


$wgGroupPermissions['*']['createaccount'] = false;

File:Example.jpg