mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-02 14:29:11 +02:00
revert(install): reset condition to look for instance owner before continuing install
This commit is contained in:
parent
ab275e978c
commit
fc009f3d00
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue