Extension:Prefix Security

Introduction
This extension allows the sysops to define a set of page title prefixes and set prefix-specific access rights to individual user or user groups. The administration privilege can also be granted to other users by adding something like the following line to LocalSettings.php.

$wgGroupPermissions['logged']['prefixAdministration'] = array( "username1", "username2" );

The extension consists of three main parts:

1.GroupsAdministration
GroupsAdministration is a generic extension for managing user groups. A user can be added or removed from specified group.

2.PrefixAdministration
PrefixAdministration is an extension for defining page prefixes.



3.PageRestrictionHooks
PageRestrictionHooks is the core of the extension with special hooks that actually do the job of allowing and denying reading and/or editing.

* Usage example
pagename=Main_page, pageprefix=Main

* Explanation
This extension should be usefule for a large and diverse group of people which wants use Wiki as a documentation repository, but without making every document available to everyone. For easier use, the pages that should be accessible to the same subgroup should have a common prefix, for instance the name of the project that these people are working on. We can then use the prefix administration page to set the read and write privileges for anonymous guests, registered user and to individual users. User can also be grouped (groups can, of course, overlap), so that an entire group can be granted or denied read or write access to the page.

Features

 * Handling/defining permission groups
 * Controlling groups permission
 * Creation of page prefixes
 * Manipulation of users ang groups for prefixes

1.Installation requirements
This extension requires hooks present in MediaWiki 1.6.3 and later.

2.Installing the extension
To install the GroupsAdministration & PrefixAdministration prefixes extensions, first copy/upload following files into your MediaWiki extensions directory: Installation.php Code Download GroupsAdministration.php v1.0.0 Code Download GroupsAdministration.php v1.1.0 Code Download PrefixAdministration.php v1.0.0 Code Download PrefixAdministration.php v1.1.0 Code Download PageRestrictionHooks.php v1.0.0 Code Download PageRestrictionHooks.php v1.1.0 Code Download Then edit your LocalSettings.php file and add the following lines:

require_once( 'extensions/GroupsAdministration.php' ); require_once( 'extensions/PrefixAdministration.php' );

Save the file and upload it.

Now go to your MediaWiki SpecialPages tabs logged in as Sysop. Click on GroupsAdministration extension where you will get further installation instructions.

Change Log
Version 1.0 21/08/2006	Initial release