Page MenuHomeMiraheze

$wgRestrictionLevels not including author when AuthorProtect is enabled
Closed, ResolvedPublic

Description

When I try to protect any of the pages on C.Syde's Wiki (e.g. https://csydes.miraheze.org/w/index.php?title=B-Da_Players_in_Battle_B-Daman_and_their_B-Da_Ball_Colours&action=protect on this page) the option to author protect pages doesn't show. I don't know why this is, but it is definitely a bug. Because all the usergroups that were given the (authorprotect) permission were until recently able to protect authored pages. But not anymore.

Event Timeline

C.Syde65 triaged this task as Normal priority.Jul 7 2020, 03:29
C.Syde65 created this task.
RhinosF1 renamed this task from There's a bug that's preventing users with the (authorprotect) permission to author protect pages to $wgRestrictionLevels not including author when AuthorProtect is enabled.Jul 7 2020, 08:34

@Paladox The issue is it seems to only take into account 'wgRestrictionLevels' from LocalSettings.php and even if the restriction level is defined in extension.json or if we try to do it in LocalExtensions.php it won't work. So for some reason LocalSettings is overriding everything

I've tried all morning on https://git.io/JJtep to get something working but whatever I try seems to break something else.

@C.Syde65 We've fixed the error for your wiki now. We're keeping this task open as it still applies to other wikis trying to use AuthorProtect