Namespace Permissions

From mw.mh370.wiki
Jump to navigation Jump to search


A Guide to Using MediaWiki in a Hosted Environment

An instructional website by the developer of mh370wiki.net - a MediaWiki site about Malaysia Airlines Flight MH370.


The $wgGroupPermissions variable can be used to restrict access to content by Namespace. The settings are added to LocalSettings.php.

Depending on your choices when installing MediaWiki, LocalSettings.php may already contain these lines (comments have been added):-

# The following permissions were set based on your choice in the installer
$wgGroupPermissions["*"]["createaccount"] = false; # Anonymous users cannot create an Account
$wgGroupPermissions["*"]["edit"] = false;          # Anonymous users cannot edit content

The next step is to assign permissions for each Namespace. For example:-

$wgGroupPermissions['sysop']['editSNIPPETS'] = true;

See article Configure Namespaces.

Allow Anonymous Users to 'read' content in the Main Namespace