revert(install): reset condition to look for instance owner before continuing install

This commit is contained in:
Yassine Doghri 2023-02-28 14:26:27 +00:00
commit fc009f3d00
2 changed files with 6 additions and 1 deletions

View file

@ -115,8 +115,10 @@ class InstallController extends Controller
}
try {
$db = db_connect();
// Check if instance owner has been created, meaning install was completed
if ((new UserModel())->where('is_owner', true)
if ($db->tableExists('users') && (new UserModel())->where('is_owner', true)
->first() !== null
) {
// if so, show a 404 page