From 3b3c0b94e55a96e18dd4b1226d9717449192ef62 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 11 Oct 2023 12:03:39 +0200 Subject: [PATCH 1/5] version++ --- config/sentry.php | 2 +- config/version.php | 2 +- versions.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/sentry.php b/config/sentry.php index e5bda8c43..aae1119e5 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -7,7 +7,7 @@ // 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.74', + 'release' => '4.0.0-beta.75', // 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 37fb394e4..2d7480b05 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@ Date: Wed, 11 Oct 2023 12:03:59 +0200 Subject: [PATCH 2/5] fix: deleted team and it is the current one --- app/Models/User.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Models/User.php b/app/Models/User.php index 51ac0aa14..970120079 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -118,6 +118,9 @@ public function isInstanceAdmin() public function currentTeam() { return Cache::remember('team:' . auth()->user()->id, 3600, function () { + if (is_null(data_get(session('currentTeam'), 'id'))) { + return auth()->user()->teams[0]; + } return Team::find(session('currentTeam')->id); }); } From daf3710a5ec730ffac9969b9777d392c07d163bf Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 11 Oct 2023 12:04:14 +0200 Subject: [PATCH 3/5] fix: add new team button --- resources/views/components/team/navbar.blade.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/views/components/team/navbar.blade.php b/resources/views/components/team/navbar.blade.php index 7923340c8..53f35848a 100644 --- a/resources/views/components/team/navbar.blade.php +++ b/resources/views/components/team/navbar.blade.php @@ -1,11 +1,14 @@
-

Team

+
+

Team

+ + New Team +