Santhosh has uploaded a new change for review. https://gerrit.wikimedia.org/r/212778
Change subject: Add anon user check to ApiQueryContentTranslation ...................................................................... Add anon user check to ApiQueryContentTranslation Change-Id: I49bce93f91ce1bdceafd0148b462a7076b81b382 --- M api/ApiQueryContentTranslation.php 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/78/212778/1 diff --git a/api/ApiQueryContentTranslation.php b/api/ApiQueryContentTranslation.php index 799f449..55bb5d0 100644 --- a/api/ApiQueryContentTranslation.php +++ b/api/ApiQueryContentTranslation.php @@ -35,6 +35,10 @@ $result = $this->getResult(); $user = $this->getUser(); + if ( $user->isAnon() ) { + $this->dieUsage( 'To view your translations, you must log in', 'notloggedin' ); + } + if ( $params['sourcetitle'] && $params['from'] && $params['to'] ) { return $this->find( $params['sourcetitle'], -- To view, visit https://gerrit.wikimedia.org/r/212778 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I49bce93f91ce1bdceafd0148b462a7076b81b382 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits