* guest user has no priv of ajax functions.
This commit is contained in:
@@ -139,8 +139,7 @@ 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($this->loadModel('user')->isLogon() and strpos($method, 'ajax') === 0) return true;
|
||||
|
||||
if($module == 'misc' and $method == 'about') return true;
|
||||
if($module == 'misc' and $method == 'checkupdate') return true;
|
||||
|
||||
Reference in New Issue
Block a user