dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0c6593
)
(bug 10767) More fixes for userCan. Kudos to WebBoy for report + patch
author
Andrew Garrett
<werdna@users.mediawiki.org>
Wed, 1 Aug 2007 13:21:07 +0000
(13:21 +0000)
committer
Andrew Garrett
<werdna@users.mediawiki.org>
Wed, 1 Aug 2007 13:21:07 +0000
(13:21 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
80adc1c
..
028df68
100644
(file)
--- 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 ) ) {