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 and version matrix

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.

Usage [edit]

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 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.

Installation [edit]

  1. Download the files from SVN or copy them manually from SVN
  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

See also [edit]

Language: English