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); }); } 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 @@ -

Team

+
+

Team

+ + New Team +