Merge pull request #4029 from angelej/gitlab-authorization

Add team authorization for gitlab sources
This commit is contained in:
Andras Bacsai 2024-10-28 09:28:44 +01:00 committed by GitHub
commit 8c88dfdd50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -233,7 +233,7 @@
})->name('source.all');
Route::get('/source/github/{github_app_uuid}', GitHubChange::class)->name('source.github.show');
Route::get('/source/gitlab/{gitlab_app_uuid}', function (Request $request) {
$gitlab_app = GitlabApp::where('uuid', request()->gitlab_app_uuid)->first();
$gitlab_app = GitlabApp::ownedByCurrentTeam()->where('uuid', request()->gitlab_app_uuid)->firstOrFail();
return view('source.gitlab.show', [
'gitlab_app' => $gitlab_app,