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 @@ class Index extends Component
}
public function mount()
{
if (config('coolify.waitlist') == false) {
return redirect()->route('register');
}
$this->waitingInLine = Waitlist::whereVerified(true)->count();
$this->users = User::count();
if (isDev()) {