fix: if waitlist is disabled, redirect to register
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user