Prevent blocked users from changing page protection levels
authorRob Church <robchurch@users.mediawiki.org>
Fri, 6 Jan 2006 23:25:26 +0000 (23:25 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Fri, 6 Jan 2006 23:25:26 +0000 (23:25 +0000)
RELEASE-NOTES
includes/ProtectionForm.php

index 4112e37..1b385fb 100644 (file)
@@ -411,7 +411,7 @@ fully support the editing toolbar, but was found to be too confusing.
   which are not of known image types. This is in response to
   http://en.wikipedia.org/wiki/Windows_Metafile_vulnerability
 * (bug 4507) Adjust FULLPAGENAMEE escaping to standard form
-* Blocked users can no longer use rollback, or delete/undelete pages
+* Blocked users can no longer roll back, change the protection of, or delete/undelete pages
 
 
 === Caveats ===
index c0c666a..b0b31bb 100644 (file)
@@ -41,7 +41,7 @@ class ProtectionForm {
                }
                
                // The form will be available in read-only to show levels.
-               $this->disabled = !$wgUser->isAllowed( 'protect' ) || wfReadOnly();
+               $this->disabled = !$wgUser->isAllowed( 'protect' ) || wfReadOnly() || $wgUser->isBlocked();
                $this->disabledAttrib = $this->disabled
                        ? array( 'disabled' => 'disabled' )
                        : array();