fix: if waitlist is disabled, redirect to register

This commit is contained in:
Andras Bacsai 2023-10-02 15:09:57 +02:00
parent 3d0354cf7e
commit e18766ec21
4 changed files with 6 additions and 3 deletions

View File

@ -23,6 +23,9 @@ public function render()
}
public function mount()
{
if (config('coolify.waitlist') == false) {
return redirect()->route('register');
}
$this->waitingInLine = Waitlist::whereVerified(true)->count();
$this->users = User::count();
if (isDev()) {

View File

@ -7,7 +7,7 @@
// The release version of your application
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
'release' => '4.0.0-beta.57',
'release' => '4.0.0-beta.58',
// When left empty or `null` the Laravel environment will be used
'environment' => config('app.env'),

View File

@ -1,3 +1,3 @@
<?php
return '4.0.0-beta.57';
return '4.0.0-beta.58';

View File

@ -4,7 +4,7 @@
"version": "3.12.36"
},
"v4": {
"version": "4.0.0-beta.57"
"version": "4.0.0-beta.58"
}
}
}