summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0785dfa)
Bug: T230702
Change-Id: I79d528866c54f40c5adcffde8410b9e2d5336ea7
$name = $titleObj->getPrefixedDBkey();
$model = $contentHandler->getModelID();
$name = $titleObj->getPrefixedDBkey();
$model = $contentHandler->getModelID();
- if ( $params['undo'] > 0 ) {
- // allow undo via api
- } elseif ( $contentHandler->supportsDirectApiEditing() === false ) {
+ // always allow undo via api, T230702
+ if ( !( $params['undo'] > 0 ) && $contentHandler->supportsDirectApiEditing() === false ) {
$this->dieWithError( [ 'apierror-no-direct-editing', $model, $name ] );
}
$this->dieWithError( [ 'apierror-no-direct-editing', $model, $name ] );
}