* fix bug for show annual data.

This commit is contained in:
wangyidong
2020-01-07 08:49:09 +08:00
parent 89329621d3
commit e2efd30948
+2
View File
@@ -1451,6 +1451,8 @@ EOD;
$module = strtolower($module);
$method = strtolower($method);
if((($app->user->account != 'guest') or ($app->company->guest and $app->user->account == 'guest')) and $module == 'report' and $method == 'annualdata') return true;
if(isset($rights[$module][$method]))
{
if(!commonModel::hasDBPriv($object, $module, $method)) return false;