Skip to content

Commit

Permalink
check for permissions in img.php. fixes #72
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Jan 30, 2024
1 parent 66545d6 commit 6fc6338
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions img.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
/** @var helper_plugin_statistics $plugin */
$plugin = plugin_load('helper', 'statistics');
try {
if(!auth_ismanager()) throw new Exception('Access denied');
$plugin->Graph()->render($_REQUEST['img'], $_REQUEST['f'], $_REQUEST['t'], $_REQUEST['s']);
} catch(Exception $e) {
$plugin->sendGIF(false);
Expand Down

0 comments on commit 6fc6338

Please sign in to comment.