Extension:LockAuthor/ru
From Linux Web Expert
<translate> This extension is professionally maintained by the WikiTeq team.</translate>
<translate> WikiTeq provides official support for [[<tvar name=1>Special:MyLanguage/Version lifecycle</tvar>|MediaWiki LTS releases only]].</translate> <translate> It may work with other MediaWiki releases.</translate>
LockAuthor Статус релиза: стабильно |
|
---|---|
Реализация | Права пользователя |
Описание | Prevents users from editing pages they haven't created |
Автор(ы) | Vedmakatalk |
Поддерживающий(ие) | WikiTeq team |
Политика совместимости | В расширении есть соответствуюшая ветвь для каждого релиза MediaWiki, который является релизом долгосрочной поддержки (Long Term Support release). |
MediaWiki | 1.35, 1.39 |
PHP | 7.1+ |
Лицензия | Лицензия не указана |
Скачать | README |
editall |
|
Ежеквартальные загрузки | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Использование общедоступными вики | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Переведите расширение LockAuthor, если оно доступно на translatewiki.net | |
Проблемы | Открытые задачи · Сообщить об ошибке |
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.
Установка
- <translate> [[<tvar name=2>Special:ExtensionDistributor/LockAuthor/ru</tvar>|Download]] and move the extracted <tvar name=name>
LockAuthor/ru
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LockAuthor%2Fru - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'LockAuthor/ru' );
- Configure as required
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
Настройка
$wgLockAuthorExcludedNamespaces
- array of namespaces to be excluded from checks$wgLockAuthorActions
- array of actions to be checked (По умолчанию:[ 'edit', 'create' ]
)
Rights:
editall
- grant this right to a group to allow bypassing extension's restrictions
Example setup
# 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;
См. также
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
Categories:
- Pages with script errors
- Pages with broken file links
- Extensions by WikiTeq/ru
- Stable extensions/ru
- User rights extensions/ru
- Extensions with manual MediaWiki version
- Extensions with no license specified/ru
- Extensions in Wikimedia version control/ru
- Extensions which add rights/ru
- All extensions/ru
- Extensions not in ExtensionJson