Extension:PrivatePageProtection

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

Release status:Extension status unmaintained

ImplementationTemplate:Extension#type User rights, Parser extension
DescriptionTemplate:Extension#description Implements per-page access permissions based on user groups
Author(s)Template:Extension#username Daniel Kinzler (Duesentriebtalk)
Latest versionTemplate:Extension#version continuous updates
MediaWikiTemplate:Extension#mediawiki 1.18+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download Template:WikimediaDownload/svn
CHANGELOG
Hooks usedTemplate:Extension#hook
getUserPermissionsErrorsExpensiveManual:Hooks/getUserPermissionsErrorsExpensive
ParserFirstCallInitManual:Hooks/ParserFirstCallInit
ArticleSaveManual:Hooks/ArticleSave

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

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, add this text to the top of the article you want to restrict access to:

{{#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: 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]

  • Download and place the file(s) in a directory called PrivatePageProtection in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/PrivatePageProtection/PrivatePageProtection.php";
    
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

See also[edit]