Allow cascading protection to be turned off without changing other settings
This commit is contained in:
parent
5ff39d3b93
commit
3a4183931c
1 changed files with 1 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ class ProtectionForm {
|
|||
global $wgGroupPermissions;
|
||||
|
||||
$edit_restriction = $this->mRestrictions['edit'];
|
||||
|
||||
$this->mCascade = $wgRequest->getBool( 'mwProtect-cascade' );
|
||||
if ($this->mCascade && ($edit_restriction != 'protect') &&
|
||||
!(isset($wgGroupPermissions[$edit_restriction]['protect']) && $wgGroupPermissions[$edit_restriction]['protect'] ) )
|
||||
$this->mCascade = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue