Skip to content

Commit aa49f0b

Browse files
committed
Remove problematic line from Lockdown config
You can not use $wgNamespaceProtection[NS_SPECIAL]['read'] = [ 'user' ]; to restrict the Special pseudo-namespace to registered users. Note: This is a global variable, not specific to the Lockdown ext. https://www.mediawiki.org/wiki/Manual:$wgNamespaceProtection If you accidentally try this, you will receive an error upon accessing Special:CreateAcccount that you do not have permission to EDIT pages in the Special namespace. Continuation of the fix for Issue #156 Add comment with API query example for SpecialPage aliases
1 parent ea8482e commit aa49f0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/MezaCoreExtensions.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,8 @@ list:
435435
config: |
436436
# handle web crawlers
437437
# https://www.mediawiki.org/wiki/Handling_web_crawlers#Lockdown
438-
$wgNamespaceProtection[NS_SPECIAL]['read'] = [ 'user' ];
438+
# get a full list of special pages via:
439+
# curl -s "[YOURWIKI]api.php?action=query&meta=siteinfo&siprop=specialpagealiases&format=json" | jq -r '.query.specialpagealiases[].aliases[]' | sort
439440
$wgSpecialPageLockdown['Recentchangeslinked'] = ['user'];
440441
$wgSpecialPageLockdown['WhatLinksHere'] = ['user'];
441442
$wgActionLockdown['history'] = [ 'user' ];

0 commit comments

Comments
 (0)