From 9f2763995e155f5f37bc91523fab4cfe2f6ee3a0 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Wed, 1 Aug 2007 13:21:07 +0000 Subject: [PATCH] (bug 10767) More fixes for userCan. Kudos to WebBoy for report + patch --- includes/Title.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 80adc1c573..028df68495 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1158,9 +1158,7 @@ class Title { ( !$this->isTalkPage() && !$user->isAllowed( 'createpage' ) ) ) { $errors[] = $user->isAnon() ? array ('nocreatetext') : array ('nocreate-loggedin'); } - } - - if( $action == 'move' && + } elseif( $action == 'move' && !( $this->isMovable() && $user->isAllowed( 'move' ) ) ) { $errors[] = $user->isAnon() ? array ( 'movenologintext' ) : array ('movenotallowed'); } else if ( !$user->isAllowed( $action ) ) { -- 2.20.1