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:
Kunal Mehta 2024-06-15 02:58:36 -04:00
parent 4212771a97
commit c205384fec

View file

@ -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.