From: Roan Kattouw Date: Fri, 18 Jan 2008 15:54:59 +0000 (+0000) Subject: Whoops, we should check for move *and* edit permissions. X-Git-Tag: 1.31.0-rc.0~49928 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=3eaf0250511ca265126838c1bd6aec60ee4caca6;p=lhc%2Fweb%2Fwiklou.git Whoops, we should check for move *and* edit permissions. --- diff --git a/includes/Title.php b/includes/Title.php index 99cc6d5c43..721eb40059 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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]; }