Allow cascading protection to be turned off without changing other settings

This commit is contained in:
Alex Z 2008-09-14 01:11:54 +00:00
parent 5ff39d3b93
commit 3a4183931c

View file

@ -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;