Extension:UserProtect

The UserProtect extension provides straightforward per-user per-right per-page protection. It allows those with the  right (administrators by default) to use a page protection tool that is similar to the way the core MediaWiki Protect action works. It allows adding rights or removing rights on a per-page basis. It cannot restrict the viewing of any pages.

This extension was created for WikiWorks.

Features

 * Stores its data in the MediaWiki database.
 * Doesn't disable caching.
 * Has a minimalist interface
 * Adds and removes rights on the fly.
 * Overrides the built-in core per-group protection system with finer per-user protection.

Usage
A user with the  right is provided with the "User protect" item in the page actions menu. Click it to add or remove allowed restrictions to the current page on per-user basis. Just start typing user names in the [[media:UserProtect_Interface.png|appropriate right field]]. Each field allows multiple values and autocompletes as you type. Once you are done, submit the form.

The "All rights" field
The "All rights" field is a convenience field. It doesn't add/remove every right in the permissions system, but rather every right that can be seen on the UserProtect page. So it's the equivalent of putting a user name in all of the fields individually. Of note, if the  global is later changed, that will affect any user with "All rights" accordingly.

Parameters

 * Sets which user rights can be modified by the extension. Defaults to:
 * Sets which user rights can be modified by the extension. Defaults to:


 * For example, you can add to your "LocalSettings.php" file:


 * Also, this extension adds the  right which controls which users can use the UserProtect page to change the rights of other users (or their own). This right can be granted to individual users for particular pages by adding:


 * The extension will probably work with any MediaWiki core or extension page-related right, but it has not been tested with all of them. It does not work with the "read" right.

User rights

 * userprotect
 * Allows users to use the "UserProtect" page action in order to add or remove user rights for this page. Defaults to: