Extension:PrivatePageProtection

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

Release status: unmaintained

Implementation User rights, Parser extension
Description Implements per-page access permissions based on user groups
Author(s) Daniel Kinzler (Duesentriebtalk)
Latest version continuous updates
MediaWiki 1.18+
Database changes No
License GNU General Public License 2.0 or later
Download Template:WikimediaDownload/svn
CHANGELOG
Hooks used
getUserPermissionsErrorsExpensive

ParserFirstCallInit
ArticleSave

Translate the PrivatePageProtection extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

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 | edit source]

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 | edit source]

  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 | edit source]