Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Update admin authentication and version numbers

Andras Bacsaied12f7348371
diff --git a/app/Livewire/Admin/Index.php b/app/Livewire/Admin/Index.php
index 3c13cd7713..b6116d3377 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 5f2ea6fb6e..4a2eff3f2f 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 01e2a62f91..b1372fd9d2 100644
--- a/config/version.php
+++ b/config/version.php
@@ -1,3 +1,3 @@
<?php
-return '4.0.0-beta.212';
+return '4.0.0-beta.213';