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;