mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Co-authored-by: Aditya Tripathi <aditya@climactic.co>
33 lines
818 B
PHP
33 lines
818 B
PHP
<?php
|
|
|
|
namespace App\Livewire\ImageScan;
|
|
|
|
use App\Models\InstanceSettings;
|
|
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', [
|
|
'allowed' => (bool) InstanceSettings::get()->is_image_scanning_allowed,
|
|
]);
|
|
}
|
|
}
|