mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-16 09:42:29 -04:00
Scanning is now controlled per server and per app. Each server downloads the Grype database from its default source. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
688 B
PHP
30 lines
688 B
PHP
<?php
|
|
|
|
namespace App\Livewire\ImageScan;
|
|
|
|
use App\Models\Team;
|
|
use Illuminate\Contracts\View\View;
|
|
use Livewire\Attributes\Locked;
|
|
use Livewire\Component;
|
|
|
|
/**
|
|
* Team settings page for image scanning. Members see the values, admins edit them (authorized in ScanSettings).
|
|
*/
|
|
class TeamImageScanning extends Component
|
|
{
|
|
#[Locked]
|
|
public int $teamId;
|
|
|
|
public function mount(): void
|
|
{
|
|
$team = currentTeam();
|
|
abort_unless($team instanceof Team && auth()->user()->teams->contains('id', $team->id), 403);
|
|
$this->teamId = $team->id;
|
|
}
|
|
|
|
public function render(): View
|
|
{
|
|
return view('livewire.image-scan.team-image-scanning');
|
|
}
|
|
}
|