Skip to content

Commit

Permalink
Resolving Issue #2964 for CSV output
Browse files Browse the repository at this point in the history
This should be the last permission issue around data export issues.
  • Loading branch information
cigamit committed Sep 24, 2019
1 parent de3833b commit c7cf4a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions graph_xport.php
Expand Up @@ -77,6 +77,13 @@
$graph_data_array['print_source'] = get_request_var('show_source');
}

// Capture permission errors
if (!is_graph_allowed(get_request_var('local_graph_id'))) {
raise_message('permission_denied', __('Permission Denied. Either this Graph does not exist or you do not have permission to access it.'), MESSAGE_LEVEL_ERROR);
header('Location: ' . sanitize_uri($_SERVER['HTTP_REFERER']));
exit;
}

$graph_info = db_fetch_row_prepared('SELECT *
FROM graph_templates_graph
WHERE local_graph_id = ?',
Expand Down

0 comments on commit c7cf4a2

Please sign in to comment.