From e2efd30948f61b661edf2c88ed180d3367cd0958 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 7 Jan 2020 08:49:09 +0800 Subject: [PATCH] * fix bug for show annual data. --- module/common/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/common/model.php b/module/common/model.php index 82524f41e3..b4f3110722 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -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;