* fix bug for show dashboard first.

This commit is contained in:
wangyidong
2016-04-28 08:38:45 +08:00
parent d01ba354a2
commit a95d623dec
+1 -1
View File
@@ -22,7 +22,7 @@ class block extends control
parent::__construct($moduleName, $methodName);
/* Mark the call from zentao or ranzhi. */
$this->selfCall = strpos($this->server->http_referer, common::getSysURL()) === 0 || $this->session->blockModule;
if($this->methodName != 'admin' and !$this->selfCall and !$this->loadModel('sso')->checkKey()) die('');
if($this->methodName != 'admin' and $this->methodName != 'dashboard' and !$this->selfCall and !$this->loadModel('sso')->checkKey()) die('');
}
/**