Extension:AuthorProtect

From mediawiki.org
This page is a translated version of the page Extension:AuthorProtect and the translation is 40% complete.
MediaWiki扩展手册
AuthorProtect
发行状态: 稳定版
实现 用户权限 , 页面操作
描述 能让页面的作者保护页面不受其他用户的影响
作者 Ryan Schmidt (Skizzerz留言)
最新版本 1.4.0 (2017-11-25)
MediaWiki 1.29+
许可协议 GNU通用公眾授權條款2.0或更新版本
下載
  • $wgRestrictionLevels
  • author
  • authorprotect
季度下載量 7 (Ranked 142nd)
前往translatewiki.net翻譯AuthorProtect扩展

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 that gives them (author) 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).

安装

  • 下载文件,并将其放置在您extensions/文件夹中的AuthorProtect目录内。
    开发者和代码贡献人员应从Git安装扩展,输入:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/AuthorProtect
  • 将下列代码放置在您的LocalSettings.php 的底部:
    wfLoadExtension( 'AuthorProtect' );
    
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。

参见