Skip to content

Commit 87e9d0b

Browse files
Merge pull request #2 from topcoder-platform/issues-37
Check API key before saving files
2 parents 98b1d26 + 190b256 commit 87e9d0b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

class.filestack.plugin.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ public function settingsController_filestack_create($sender) {
171171
}
172172

173173
public function gdn_upload_SaveAs_handler($sender, $args){
174+
if(!c('Plugins.Filestack.ApiKey')) {
175+
return;
176+
}
174177
$parsed = & $args['Parsed'];
175178
$handled =& $args['Handled'];
176179
$tmpFilePath = $args['Path'];

0 commit comments

Comments
 (0)