REST: Mark TransformHandler as not needing write access
This doesn't write anything to the wiki, it just transforms from wikitext to HTML and vice versa. Bug: T367625 Change-Id: Ica314f7fe04fc5d93bb96d16a07067e630a335a9
This commit is contained in:
parent
4212771a97
commit
c205384fec
1 changed files with 7 additions and 0 deletions
|
|
@ -54,6 +54,13 @@ class TransformHandler extends ParsoidHandler {
|
|||
ParamValidator::PARAM_REQUIRED => false, ], ];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function needsWriteAccess() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public function checkPreconditions() {
|
||||
// NOTE: disable all precondition checks.
|
||||
// If-(not)-Modified-Since is not supported by the /transform/ handler.
|
||||
|
|
|
|||
Loading…
Reference in a new issue