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

From mediawiki.org
This page is a translated version of the page Extension:AuthorProtect and the translation is 30% 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
  • author
  • authorprotect
Ежеквартальные загрузки 6 (Ranked 141st)
Переведите расширение 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).

Установка

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

См. также