Extension:PrivatePageProtection

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
PrivatePageProtection

Release status: beta

Implementation User rights, Parser extension
Description Implements per-page access permissions based on user groups
Author(s) Daniel Kinzler (DuesentriebTalk)
Last version continuous updates
MediaWiki 1.18+
Database changes no
License GPL 2.0 or later
Download
CHANGELOG
Hooks used
getUserPermissionsErrorsExpensive

ParserFirstCallInit
ArticleSave

Check usage (experimental)

The PrivatePageProtection extension implements a way to restrict access to specific pages using a parser function. Using that parser function, the user groups that should have access to the page can be listed directly in the page.

[edit] Usage

To restrict access to a page, use the allow-groups function:

{{#allow-groups:sysop}}

would restrict access to the sysop group.

{{#allow-groups:autoconfirmed|emailconfirmed}}

restricts access to members of the autoconfirmed and emailconfirmed groups.

Note: Note that user can not save a page which restricts access to groups the user does not belong to. That is, users can not lock themselves out of pages.

[edit] Installation

  1. Download the files from SVN or download a snapshot (select your version of MediaWiki)
  2. Create a directory PrivatePageProtection in your $IP/extensions directory.
  3. Add the files to that $IP/extensions/PrivatePageProtection directory.
  4. Add to the end of LocalSettings.php:
    require_once("$IP/extensions/PrivatePageProtection/PrivatePageProtection.php");
    
  5. Installation can now be verified through Special:Version on your wiki

[edit] See also

Language: English
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox