* code for task#926.

This commit is contained in:
zhujinyong
2012-12-13 02:45:52 +00:00
parent 66c1ad0038
commit 54f0be49c2

View File

@@ -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;
}