dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "Add 'autocomplete' option to HTMLTextField"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryStashImageInfo.php
diff --git
a/includes/api/ApiQueryStashImageInfo.php
b/includes/api/ApiQueryStashImageInfo.php
index
6d1540b
..
b039a1e
100644
(file)
--- 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();