mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-09 14:34:47 +00:00
Improve installed database detection
This commit is contained in:
@@ -4,6 +4,7 @@ namespace InvoiceShelf\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use InvoiceShelf\Models\Setting;
|
||||
use InvoiceShelf\Space\InstallUtils;
|
||||
|
||||
class RedirectIfInstalled
|
||||
{
|
||||
@@ -15,7 +16,7 @@ class RedirectIfInstalled
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if (\Storage::disk('local')->has('database_created')) {
|
||||
if (InstallUtils::dbMarkerExists()) {
|
||||
if (Setting::getSetting('profile_complete') === 'COMPLETED') {
|
||||
return redirect('login');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user