API: Check suppressredirect right in ApiMove
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
This commit is contained in:
parent
07e90fadfb
commit
56a12f8b57
1 changed files with 5 additions and 0 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue