From 3eaf0250511ca265126838c1bd6aec60ee4caca6 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 18 Jan 2008 15:54:59 +0000 Subject: [PATCH] Whoops, we should check for move *and* edit permissions. --- includes/Title.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; } -- 2.20.1