mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
auth()->user()
This commit is contained in:
@@ -148,7 +148,7 @@
|
|||||||
#{{ $loop->iteration }} Bild
|
#{{ $loop->iteration }} Bild
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@if(auth()->user()->hasRole('super-admin') || app()->environment('local'))
|
@if(auth()->user()?->hasRole('super-admin') || app()->environment('local'))
|
||||||
<x-button wire:click="deletePhoto({{ $image->id }})" xs
|
<x-button wire:click="deletePhoto({{ $image->id }})" xs
|
||||||
x-bind="focusableWhenVisible"
|
x-bind="focusableWhenVisible"
|
||||||
class="px-4 py-2 text-sm">
|
class="px-4 py-2 text-sm">
|
||||||
|
|||||||
Reference in New Issue
Block a user