John Erling Blad has uploaded a new change for review. Change subject: (Bug 42626) Add methods needsToken, mustBePosted and isWriteMode ......................................................................
(Bug 42626) Add methods needsToken, mustBePosted and isWriteMode These methods must be overridden for all api modules that changes anything. * needsToken must be set to true in production and then a valid token found in the request * mustBePosted must be set to true in production and then all requests must be sent as POST requests * isWriteMode must be set to true for all modules that changes data due to requsts Change-Id: Ic5c73355f2d4180a57fc202bd908bceb88b7dbcf --- M repo/includes/api/ApiCreateClaim.php M repo/includes/api/ApiRemoveClaims.php M repo/includes/api/ApiSetClaimValue.php M repo/includes/api/ApiSetReference.php M repo/includes/api/RemoveReferences.php M repo/includes/api/SetStatementRank.php 6 files changed, 126 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/00/36400/1 -- To view, visit https://gerrit.wikimedia.org/r/36400 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic5c73355f2d4180a57fc202bd908bceb88b7dbcf Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: John Erling Blad <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
