diff --git a/app/Http/Livewire/Source/Github/Create.php b/app/Http/Livewire/Source/Github/Create.php index b5487bcc8..c607af451 100644 --- a/app/Http/Livewire/Source/Github/Create.php +++ b/app/Http/Livewire/Source/Github/Create.php @@ -32,16 +32,19 @@ public function createGitHubApp() "custom_port" => 'required|int', "is_system_wide" => 'required|bool', ]); - $github_app = GithubApp::create([ + $payload = [ 'name' => $this->name, 'organization' => $this->organization, 'api_url' => $this->api_url, 'html_url' => $this->html_url, 'custom_user' => $this->custom_user, 'custom_port' => $this->custom_port, - 'is_system_wide' => $this->is_system_wide, 'team_id' => currentTeam()->id, - ]); + ]; + if (isCloud()) { + $payload['is_system_wide'] = $this->is_system_wide; + } + $github_app = GithubApp::create($payload); if (session('from')) { session(['from' => session('from') + ['source_id' => $github_app->id]]); } diff --git a/resources/views/livewire/source/github/change.blade.php b/resources/views/livewire/source/github/change.blade.php index 5b971c5f4..ea3b1e82f 100644 --- a/resources/views/livewire/source/github/change.blade.php +++ b/resources/views/livewire/source/github/change.blade.php @@ -43,40 +43,41 @@ Install Repositories on GitHub @else -