From 3fe58ec66b74192b809c715f38c72dcece7a3a9e Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 8 Feb 2024 13:33:51 +0100 Subject: [PATCH] Fix isInstanceAdmin function call in Index.php --- app/Livewire/Admin/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Livewire/Admin/Index.php b/app/Livewire/Admin/Index.php index b6116d337..4fe430538 100644 --- a/app/Livewire/Admin/Index.php +++ b/app/Livewire/Admin/Index.php @@ -11,7 +11,7 @@ class Index extends Component public $users = []; public function mount() { - if (instanceAdmin() && session('adminToken') === null) { + if (isInstanceAdmin() && session('adminToken') === null) { return redirect()->route('dashboard'); } $this->users = User::whereHas('teams', function ($query) {