* If the user is logon, limit vision.

This commit is contained in:
daitingting
2023-08-14 09:19:11 +00:00
parent 08420afc27
commit db0f84f0dd
+4 -1
View File
@@ -506,7 +506,10 @@ class router extends baseRouter
}
else
{
$action = $this->dbh->query("SELECT * FROM " . TABLE_WORKFLOWACTION . " WHERE `module` = '$this->moduleName' AND `action` = '$this->methodName' AND `vision` = '{$this->config->vision}'")->fetch();
$actionQuery = "SELECT * FROM " . TABLE_WORKFLOWACTION . " WHERE `module` = '$this->moduleName' AND `action` = '$this->methodName'";
if(isset($this->app->user) && $this->app->user->account != 'guest') $actionQuery .= " AND `vision` = '{$this->config->vision}'";
$action = $this->dbh->query($actionQuery)->fetch();
if(zget($action, 'extensionType') == 'override')
{
$this->rawModule = $this->moduleName;