Update admin authentication and version numbers

This commit is contained in:
Andras Bacsai 2024-02-08 13:33:34 +01:00
parent 3dd5546369
commit ed12f73483
3 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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'),

View File

@ -1,3 +1,3 @@
<?php
return '4.0.0-beta.212';
return '4.0.0-beta.213';