Extension:AuthorProtect

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg
AuthorProtect

Release status:Extension status stable

ImplementationTemplate:Extension#type User rights, Page action
DescriptionTemplate:Extension#description Allows the author of a page to protect it from other users
Author(s)Template:Extension#username Ryan Schmidt (Skizzerztalk)
Latest versionTemplate:Extension#version 1.4.0 (2017-11-25)
MediaWikiTemplate:Extension#mediawiki 1.29+
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
Added rightsTemplate:Extension#rights
  • author
  • authorprotect
Hooks usedTemplate:Extension#hook
UserGetRightsManual:Hooks/UserGetRights
SkinTemplateNavigation::UniversalManual:Hooks/SkinTemplateNavigation::Universal
UnknownActionManual:Hooks/UnknownAction
userCanManual:Hooks/userCan

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

Check usage and version matrix.

The AuthorProtect extension allows page authors to protect pages from non-authors on a page-by-page basis. Authors with the 'authorprotect' permission will gain a protect tab on pages they author that gives them access to this interface. Because logs and anonymous users don't mix very well (as with the fact that all anonymous users share the same user id), anonymous users are unable to use this extension regardless of if they have the 'authorprotect' right or not.

Do not assign the author right via GroupPermissions (except to those who you want to be able to edit author-protected pages)! This right is automatically assigned to the author of the page. Assigning this right via $wgGroupPermissions gives that group the ability to edit all author-protected pages, regardless of if they are the author of the page or not (by default user group administrators have this right).

Installation[edit]

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

See also[edit]