Fix isInstanceAdmin function call in Index.php
This commit is contained in:
parent
ed12f73483
commit
3fe58ec66b
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user