Jump to content

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
前往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 manually assign the 'author' permission to any non-privileged group. Do not assign the 'author' right via $wgGroupPermissions , 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 $GroupPermissions 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).

安装

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

参阅