From ed12f7348371c3585e1bab3f08c6d2962f113b9b Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 8 Feb 2024 13:33:34 +0100 Subject: [PATCH] Update admin authentication and version numbers --- app/Livewire/Admin/Index.php | 2 +- config/sentry.php | 2 +- config/version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Livewire/Admin/Index.php b/app/Livewire/Admin/Index.php index 3c13cd771..b6116d337 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 (auth()->user()->id !== 0 && session('adminToken') === null) { + if (instanceAdmin() && session('adminToken') === null) { return redirect()->route('dashboard'); } $this->users = User::whereHas('teams', function ($query) { diff --git a/config/sentry.php b/config/sentry.php index 5f2ea6fb6..4a2eff3f2 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -7,7 +7,7 @@ return [ // The release version of your application // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')) - 'release' => '4.0.0-beta.212', + 'release' => '4.0.0-beta.213', // When left empty or `null` the Laravel environment will be used 'environment' => config('app.env'), diff --git a/config/version.php b/config/version.php index 01e2a62f9..b1372fd9d 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@