From: Andrew Garrett Date: Wed, 1 Aug 2007 13:21:07 +0000 (+0000) Subject: (bug 10767) More fixes for userCan. Kudos to WebBoy for report + patch X-Git-Tag: 1.31.0-rc.0~51898 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22calendrier%22%2C%22type=semaine%22%29%20.%20%22?a=commitdiff_plain;h=9f2763995e155f5f37bc91523fab4cfe2f6ee3a0;p=lhc%2Fweb%2Fwiklou.git (bug 10767) More fixes for userCan. Kudos to WebBoy for report + patch --- 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 ) ) {