Fix isInstanceAdmin function call in Index.php

This commit is contained in:
Andras Bacsai 2024-02-08 13:33:51 +01:00
parent ed12f73483
commit 3fe58ec66b

View File

@ -11,7 +11,7 @@ class Index extends Component
public $users = []; public $users = [];
public function mount() public function mount()
{ {
if (instanceAdmin() && session('adminToken') === null) { if (isInstanceAdmin() && session('adminToken') === null) {
return redirect()->route('dashboard'); return redirect()->route('dashboard');
} }
$this->users = User::whereHas('teams', function ($query) { $this->users = User::whereHas('teams', function ($query) {