This commit is contained in:
WispX
2019-01-19 23:35:10 +08:00
parent 58c7dc84a6
commit a650394be8
+1 -1
View File
@@ -58,7 +58,7 @@ class Base extends Controller
}
// 检测数据库结构更新
if ($this->user && $this->user->is_admin && !\config('app.app_debug')) {
if ($this->user && $this->user->is_admin) {
if (file_exists(Env::get('root_path') . 'update.sql')) {
$this->redirect(url('/install/update'));
}