Whoops, we should check for move *and* edit permissions.
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 18 Jan 2008 15:54:59 +0000 (15:54 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 18 Jan 2008 15:54:59 +0000 (15:54 +0000)
includes/Title.php

index 99cc6d5..721eb40 100644 (file)
@@ -2310,7 +2310,8 @@ class Title {
 
                if ( $auth ) {
                        global $wgUser;
-                       $errors = $this->getUserPermissionsErrors('move', $wgUser);
+                       $errors = array_merge($this->getUserPermissionsErrors('move', $wgUser),
+                                       $this->getUserPermissionsErrors('edit', $wgUser));
                        if($errors !== array())
                                return $errors[0][0];
                }