Расширение:AuthorProtect

This page is a translated version of the page Extension:AuthorProtect and the translation is 27% complete.
Справка по расширениям MediaWiki
AuthorProtect
Статус релиза: стабильно
Реализация Права пользователя , Действие страницы
Описание Allows the author of a page to protect it from other users
Автор(ы) Ryan Schmidt (Skizzerzобсуждение)
Последняя версия 1.4.0 (2017-11-25)
MediaWiki 1.29+
Лицензия GNU General Public License 2.0 или позднее
Скачать
  • $wgRestrictionLevels
Ежеквартальные загрузки 11 (Ranked 151st)
Переведите расширение AuthorProtect, если оно доступно на translatewiki.net

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 assign the author right via GroupPermissions (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 $wgGroupPermissions 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).

Download

Расширение можно получить непосредственно из Git [?]:

  • Просмотреть код
  • Некоторые расширения имеют теги для стабильных выпусков.
  • Каждая ветвь связана с прошлым выпуском MediaWiki. Существует также ветвь "master", содержащая последнюю альфа-версию (может потребоваться альфа-версия MediaWiki).

Извлеките snapshot и поместите его в каталог extensions/AuthorProtect/ вашей MediaWiki.

Если вы знакомы с git и имеете доступ к оболочке на своём сервере, тогда Вы можете получить расширение следующим образом:

cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/AuthorProtect.git

Установка

  • Скачайте и распакуйте файл(ы) в папку с названием AuthorProtect в вашей папке extensions/.
  • Добавьте следующий код в конце вашего файла LocalSettings.php :
    wfLoadExtension( 'AuthorProtect' );
    
  •   Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.

См. также