From 54f0be49c20ba270ec61c22561ea8e556b13b373 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Thu, 13 Dec 2012 02:45:52 +0000 Subject: [PATCH] * code for task#926. --- module/common/model.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/common/model.php b/module/common/model.php index 08e0acae7f..daead207ff 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -138,10 +138,13 @@ class commonModel extends model { if($module == 'user' and strpos('login|logout|deny', $method) !== false) return true; if($module == 'api' and $method == 'getsessionid') return true; + + $logon = ($this->app->company->guest or $this->loadModel('user')->isLogon()); + if($logon and strpos($method, 'ajax') === 0) return true; + if($module == 'misc' and $method == 'about') return true; if($module == 'misc' and $method == 'checkupdate') return true; if($module == 'help' and $method == 'field') return true; - if($module == 'webapp' and $method == 'ajaxaddview') return true; return false; }