* Add openedApproval config.

This commit is contained in:
wangyuting2
2022-06-30 14:38:45 +08:00
parent 8d43bd7bdc
commit 20ef9ee98e
2 changed files with 13 additions and 1 deletions
+13
View File
@@ -28,6 +28,7 @@ class commonModel extends model
$this->sendHeader();
$this->setCompany();
$this->setUser();
$this->setApproval();
$this->loadConfigFromDB();
$this->app->setTimezone();
$this->loadCustomFromDB();
@@ -284,6 +285,18 @@ class commonModel extends model
}
}
/**
* Set approval config.
*
* @access public
* @return void
*/
public function setApproval()
{
$this->config->openedApproval = false;
if($this->config->edition == 'max' && $this->config->vision == 'rnd') $this->config->openedApproval = true;
}
/**
* Load configs from database and save it to config->system and config->personal.
*