Extension:LockAuthor

This page is a translated version of the page Extension:LockAuthor and the translation is 42% complete.
This extension is professionally maintained by the WikiTeq team.
WikiTeq provides official support for MediaWiki LTS releases only. It may work with other MediaWiki releases.
MediaWiki 拡張機能マニュアル
LockAuthor
リリースの状態: 安定
実装 利用者権限
説明 Prevents users from editing pages they haven't created
作者 Vedmakaトーク
メンテナー WikiTeq team
最新バージョン 1.0
互換性の方針 長期間サポート リリースであるすべての MediaWiki リリースについて、拡張機能に対応するブランチが存在します。
MediaWiki 1.35, 1.39
PHP 7.1+
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
README
  • $wgLockAuthorExcludedNamespaces
  • $wgLockAuthorActions
editall
Quarterly downloads 10 (Ranked 128th)
translatewiki.net で翻訳を利用できる場合は、LockAuthor 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

LockAuthor is a MediaWiki extension that prevents users from editing pages they have not created.

It does not itself allow users to edit pages that they have created; for that, you will have to make sure the standard "edit" right is correctly set.

This extension is a drop-in replacement for the EditOwn extension, which was archived in 2018.

This extension was created for WikiWorks.

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のLockAuthorという名前のディレクトリ内に配置します。
    開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LockAuthor
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'LockAuthor' );
    
  • 必要に応じて設定します
  •   完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

設定

  • $wgLockAuthorExcludedNamespaces - array of namespaces to be excluded from checks
  • $wgLockAuthorActions - array of actions to be checked (既定値: [ 'edit', 'create' ])

権限:

  • editall - grant this right to a group to allow bypassing extension's restrictions

セットアップ例

# Prevent anonymous editing
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;

# Allow regular users to edit pages
$wgGroupPermissions['user']['edit'] = true;
$wgGroupPermissions['user']['createpage'] = true;

wfLoadExtension( 'LockAuthor' );
// LockAuthor will limit users edit right only to pages created by them

# Allow sysop to edit all pages
$wgGroupPermissions['sysop']['editall'] = true;

関連項目