diff --git a/resources/views/filament/pages/supporto/modifiche.blade.php b/resources/views/filament/pages/supporto/modifiche.blade.php index 1d5524c..d0bd3b0 100644 --- a/resources/views/filament/pages/supporto/modifiche.blade.php +++ b/resources/views/filament/pages/supporto/modifiche.blade.php @@ -1,4 +1,6 @@
+ @php($supportUpdateAuthUser = auth()->user()) + @php($supportCanRunUpdate = $supportUpdateAuthUser && method_exists($supportUpdateAuthUser, 'hasAnyRole') && $supportUpdateAuthUser->hasAnyRole(['super-admin', 'admin', 'amministratore']))
Vai a Aggiornamenti + Bug - + Lancia aggiornamento
@@ -107,7 +109,7 @@ class="inline-flex items-center rounded-md px-3 py-1.5 text-xs font-medium {{ $t
{{ $this->developmentSnapshotPath ?? '-' }}
- + Rigenera snapshot sviluppo
@@ -424,7 +426,7 @@ class="inline-flex items-center rounded-md px-3 py-1.5 text-xs font-medium {{ $t
- + Aggiorna staging da Gitea @@ -536,10 +538,10 @@ class="inline-flex items-center rounded-md px-3 py-1.5 text-xs font-medium {{ $t
- + Lancia aggiornamento - + Lancia aggiornamento (riserva) @@ -548,10 +550,10 @@ class="inline-flex items-center rounded-md px-3 py-1.5 text-xs font-medium {{ $t Aggiorna dati pagina - + Pulisci cache remoto - + Ricompila view remoto @@ -581,7 +583,7 @@ class="inline-flex items-center rounded-md px-3 py-1.5 text-xs font-medium {{ $t
- @if(! $this->canRunUpdate()) + @if(! $supportCanRunUpdate)
Permesso update non disponibile per il tuo ruolo.
@endif