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:
07e90fa
)
API: Check suppressredirect right in ApiMove
author
Brad Jorsch
<bjorsch@wikimedia.org>
Wed, 26 Nov 2014 19:43:58 +0000
(14:43 -0500)
committer
Brad Jorsch
<bjorsch@wikimedia.org>
Wed, 26 Nov 2014 19:43:58 +0000
(14:43 -0500)
Change Ic5026384 accidentally lost the check when changing from
Title::moveTo (which does the check itself) to MovePage::move (which
doesn't).
Bug: T75985
Change-Id: Ia64a233936c639a6748488e4d25816e87658ffe1
includes/api/ApiMove.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiMove.php
b/includes/api/ApiMove.php
index
c7f40c7
..
7fb6303
100644
(file)
--- a/
includes/api/ApiMove.php
+++ b/
includes/api/ApiMove.php
@@
-166,6
+166,11
@@
class ApiMove extends ApiBase {
return $permStatus;
}
+ // Check suppressredirect permission
+ if ( !$this->getUser()->isAllowed( 'suppressredirect' ) ) {
+ $createRedirect = true;
+ }
+
return $mp->move( $this->getUser(), $reason, $createRedirect );
}