diff --git a/app/Http/Livewire/Source/Github/Change.php b/app/Http/Livewire/Source/Github/Change.php index 7cf1ed538..53d5f374c 100644 --- a/app/Http/Livewire/Source/Github/Change.php +++ b/app/Http/Livewire/Source/Github/Change.php @@ -55,7 +55,6 @@ public function mount() $this->host = $settings->fqdn; } $this->parameters = getParameters(); - $this->github_app = GithubApp::where('uuid', $this->parameters['github_app_uuid'])->first(); $this->is_system_wide = $this->github_app->is_system_wide; } public function createGithubApp() diff --git a/app/Models/GithubApp.php b/app/Models/GithubApp.php index 918beb53d..e8f25a96a 100644 --- a/app/Models/GithubApp.php +++ b/app/Models/GithubApp.php @@ -22,6 +22,6 @@ static public function public() } static public function private() { - return GithubApp::where('team_id', session('currentTeam')->id)->where('is_public', false)->get(); + return GithubApp::where('team_id', session('currentTeam')->id)->where('is_public', false)->whereNotNull('app_id')->whereNotNull('installation_id')->get(); } } diff --git a/resources/views/components/layout.blade.php b/resources/views/components/layout.blade.php index 8e6787fbe..cd9f8b532 100644 --- a/resources/views/components/layout.blade.php +++ b/resources/views/components/layout.blade.php @@ -21,6 +21,8 @@
+ @livewireScripts + @auth