2011-02-17 Ramon Novoa <rnovoa@artica.es>

* include/functions.php: Hide custom SQL reports from non PM users
	  when creating reports.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3898 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2011-02-17 15:46:22 +00:00
parent 9e4e0fd87e
commit 810516479a
2 changed files with 15 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2011-02-17 Ramon Novoa <rnovoa@artica.es>
* include/functions.php: Hide custom SQL reports from non PM users
when creating reports.
2011-02-17 Miguel de Dios <miguel.dedios@artica.es>
* images/os_icons/android_small.png,

View File

@ -647,11 +647,16 @@ function get_report_types () {
$types['min_value'] = __('Min. Value');
$types['sumatory'] = __('Summatory');
//$types['agent_detailed'] = __('Agent detailed view');
$types['text'] = __('Text');
$types['sql'] = __('SQL query');
$types['sql_graph_vbar'] = __('SQL vertical bar graph');
$types['sql_graph_pie'] = __('SQL pie graph');
$types['sql_graph_hbar'] = __('SQL horizonal bar graph');
$types['text'] = __ ('Text');
# Only pandora managers have access to the whole database
if (give_acl ($config['id_user'], 0, "PM")) {
$types['sql'] = __('SQL query');
$types['sql_graph_vbar'] = __('SQL vertical bar graph');
$types['sql_graph_pie'] = __('SQL pie graph');
$types['sql_graph_hbar'] = __('SQL horizonal bar graph');
}
$types['url'] = __('Import text from URL');
$types['database_serialized'] = __('Serialize data');
$types['TTRT'] = __('TTRT');