Guest Read-only: Difference between revisions
Jump to navigation
Jump to search
m (This is to set the configuration file for media wiki to force read-only right for guest.) |
(This is to set the configuration file for media wiki to force read-only right for guest.) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
Example: End of | Example: End of LocalSettings.php | ||
[[File:Localsettings01.png]] | |||
Latest revision as of 22:50, 5 April 2016
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;
Example: End of LocalSettings.php