Extension:LockAuthor/ru

This page is a translated version of the page Extension:LockAuthor and the translation is 21% 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, который является релизом долгосрочной поддержки (Long Term Support release).
MediaWiki 1.35, 1.39
PHP 7.1+
Лицензия GNU General Public License 2.0 или позднее
Скачать
README
  • $wgLockAuthorExcludedNamespaces
  • $wgLockAuthorActions
editall
Ежеквартальные загрузки 10 (Ranked 139th)
Переведите расширение 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.

Установка

  • Скачайте и распакуйте файл(ы) в папку с названием LockAuthor в вашей папке extensions/.
    Вместо этого разработчикам и соавторам кода следует установить расширение из Git, используя:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LockAuthor
  • Добавьте следующий код в конце вашего файла LocalSettings.php :
    wfLoadExtension( 'LockAuthor' );
    
  • Configure as required
  •   Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.

Настройка

  • $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;

См. также