Extension:UserPageEditProtection
![]() リリースの状態: 安定 |
|
---|---|
実装 | 利用者権限 |
説明 | Allows to restrict edit access to user pages |
作者 | |
最新バージョン | 4.1.0 (2020-03-07) |
MediaWiki | 1.29+ |
PHP | 7.0+ |
データベースの変更 | いいえ |
ライセンス | GNU 一般公衆利用許諾書 2.0 以降 |
ダウンロード | README CHANGELOG |
$wgOnlyUserEditUserPage |
|
editalluserpages |
|
Quarterly downloads | 10 (Ranked 150th) |
translatewiki.net で翻訳を利用できる場合は、UserPageEditProtection 拡張機能の翻訳にご協力ください | |
The UserPageEditProtection extension restricts user page edit to the owner of the page (the user) and users assigned to groups that have user page edit access through $wgGroupPermissions. This effectively provides users with a group of protected pages, since this protection extends to any subpages of the user page (i.e., User:Hoggwild/sandbox1). Any user assigned to a group with view rights to user pages can read a user page, but only an authorized user may edit it. This extension has no effect on user talk pages.
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内のUserPageEditProtection
という名前のディレクトリ内に配置します。 - 以下のコードを LocalSettings.php ファイルの末尾に追加します:
wfLoadExtension( 'UserPageEditProtection' ); $wgOnlyUserEditUserPage = true;
- Configure user permissions as required
- 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
MediaWiki 1.34以前を稼働させている利用者へ:
上記の手順では、wfLoadExtension()
を使用してこの拡張機能をインストールする新しい方法を記載しています。
この拡張機能をこれらの過去のバージョン (MediaWiki 1.34以前) にインストールする必要がある場合は、wfLoadExtension( 'UserPageEditProtection' );
の代わりに以下を使用する必要があります:
require_once "$IP/extensions/UserPageEditProtection/UserPageEditProtection.php";
設定
This extension comes with an extra user right called editalluserpages
to allow fine-grained control.
By default it is assigned to the "sysop" user group.
To assign it to another user group, e.g., userpageeditor, add the following code to the "LocalSettings.php" file right after invoking this extension:
$wgGroupPermissions['userpageeditor']['editalluserpages'] = true;
You revoke permission for the "sysop" user group, for example, by adding the following line:
$wgGroupPermissions['sysop']['editalluserpages'] = false;
関連項目
この拡張機能は以下のウィキ ファーム/ウィキ ホスト/パッケージに含まれています: これは正式な一覧ではありません。 一部のウィキ ファーム/ウィキ ホスト/パッケージは、ここに記載されていなくてもこの拡張機能を含んでいる場合があります。 必ずご利用のウィキ ファーム、ウィキ ホスト、バンドルで確認してください。 |