* (bug 1193) Fix move-only page protection mode
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 25 Dec 2004 00:04:19 +0000 (00:04 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 25 Dec 2004 00:04:19 +0000 (00:04 +0000)
includes/Title.php

index e0dd5b2..e9d723d 100644 (file)
@@ -1339,7 +1339,9 @@ class Title {
                        return 'badarticleerror';
                }
 
-               if ( $auth && ( !$this->userCanEdit() || !$nt->userCanEdit() ) ) {
+               if ( $auth && (
+                               !$this->userCanEdit() || !$nt->userCanEdit() ||
+                               !$this->userCanMove() || !$nt->userCanMove() ) ) {
                        return 'protectedpage';
                }