X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryStashImageInfo.php;h=b039a1ec45d93d18932ada3765ecdd635527d3a2;hb=92d93c5d6dc6845600bd78ad668cfd9bbb1ac009;hp=6d1540b72e485b98c1a6ca64e5af4f5b83b07f4c;hpb=2aff530dfb43a16e0e838f39cf354e47d7c90ac7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryStashImageInfo.php b/includes/api/ApiQueryStashImageInfo.php index 6d1540b72e..b039a1ec45 100644 --- a/includes/api/ApiQueryStashImageInfo.php +++ b/includes/api/ApiQueryStashImageInfo.php @@ -32,6 +32,10 @@ class ApiQueryStashImageInfo extends ApiQueryImageInfo { } public function execute() { + if ( !$this->getUser()->isLoggedIn() ) { + $this->dieUsage( 'You must be logged-in to have an upload stash', 'notloggedin' ); + } + $params = $this->extractRequestParams(); $modulePrefix = $this->getModulePrefix();