mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
fix(sources): restrict system-wide Git sources to instance admins (#12164)
This commit is contained in:
@@ -40,7 +40,9 @@ describe('GitHub Source Create Component', function () {
|
||||
expect($githubApp->team_id)->toBe($this->team->id);
|
||||
});
|
||||
|
||||
test('creates github app with system wide enabled', function () {
|
||||
test('instance admin creates github app with system wide enabled', function () {
|
||||
Team::factory()->create(['id' => 0])->members()->attach($this->user->id, ['role' => 'owner']);
|
||||
|
||||
Livewire::test(Create::class)
|
||||
->assertSuccessful()
|
||||
->set('name', 'system-wide-app')
|
||||
|
||||
Reference in New Issue
Block a user