From b7fb1b1fafa1545b3aa6d9c99c1cab9204463b99 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 26 Oct 2021 10:21:17 -0700 Subject: [PATCH] Mediawiki: disable editing of talk pages We don't use talk pages, people often add notes to them and no one ever sees them. We want discussion of things on our lists or matrix, not in a talk page no one reads. This disables editing talk pages by using the lockdown plugin and only granting permissions to edit talk pages to 'noone'. Since that group doesn't exist, no one can edit them. Signed-off-by: Kevin Fenzi --- roles/mediawiki/templates/LocalSettings.php.fp.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/mediawiki/templates/LocalSettings.php.fp.j2 b/roles/mediawiki/templates/LocalSettings.php.fp.j2 index 26af8afcce..50aa7e1616 100644 --- a/roles/mediawiki/templates/LocalSettings.php.fp.j2 +++ b/roles/mediawiki/templates/LocalSettings.php.fp.j2 @@ -478,6 +478,16 @@ $wgNamespacePermissionLockdown['*']['move'] = array('user'); $wgNamespacePermissionLockdown[NS_LEGAL]['move'] = array('Legal'); $wgNamespacePermissionLockdown[NS_LICENSING]['move'] = array('Legal'); $wgNamespacePermissionLockdown[NS_PACKAGING]['move'] = array('Packaging'); + +# disallow anyone from editing talk pages, we don't want to use them +$wgNamespaceProtection[NS_TALK] = ['noone']; +$wgNamespaceProtection[NS_USER_TALK] = ['noone']; +$wgNamespaceProtection[NS_PROJECT_TALK] = ['noone']; +$wgNamespaceProtection[NS_FILE_TALK] = ['noone']; +$wgNamespaceProtection[NS_MEDIAWIKI_TALK] = ['noone']; +$wgNamespaceProtection[NS_TEMPLATE_TALK] = ['noone']; +$wgNamespaceProtection[NS_HELP_TALK] = ['noone']; +$wgNamespaceProtection[NS_CATEGORY_TALK] = ['noone']; ### END LOCKDOWN PERMISSIONS ### # Experimentation - Added by nigelj 30/Dec/2008