[Vtigercrm-commits] [vtiger-commits] r4335 - /vtigercrm/trunk/modules/Dashboard/Chart_outcome_by_month.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 20 08:32:09 EST 2006
Author: saraj
Date: Mon Mar 20 06:31:57 2006
New Revision: 4335
Log:
Changes made for security support
Modified:
vtigercrm/trunk/modules/Dashboard/Chart_outcome_by_month.php
Modified: vtigercrm/trunk/modules/Dashboard/Chart_outcome_by_month.php
==============================================================================
--- vtigercrm/trunk/modules/Dashboard/Chart_outcome_by_month.php (original)
+++ vtigercrm/trunk/modules/Dashboard/Chart_outcome_by_month.php Mon Mar 20 06:31:57 2006
@@ -106,6 +106,8 @@
echo "<em>Charts not supported in PHP 5.</em>";
}
else {
+if(isPermitted('Potentials','index')=="yes")
+{
$draw_this = new jpgraph();
echo $draw_this->outcome_by_month($date_start, $date_end, $ids, $tmp_dir.$cache_file_name, $refresh);
echo "<P><font size='1'><em>".$current_module_strings['LBL_MONTH_BY_OUTCOME_DESC']."</em></font></P>";
@@ -162,5 +164,10 @@
[<a href="index.php?module=<?php echo $currentModule;?>&action=<?php echo $action;?>&obm_edit=true"><?php echo $current_module_strings['LBL_EDIT'];?></a>]
</FONT></div>
<?php }
+}
+else
+{
+ echo $mod_strings['LBL_NO_PERMISSION'];
+}
echo get_validate_chart_js();
}?>
More information about the vtigercrm-commits
mailing list