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:
1f4ddb9
)
Whoops, we should check for move *and* edit permissions.
author
Roan Kattouw
<catrope@users.mediawiki.org>
Fri, 18 Jan 2008 15:54:59 +0000
(15:54 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Fri, 18 Jan 2008 15:54:59 +0000
(15:54 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
99cc6d5
..
721eb40
100644
(file)
--- 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];
}