add admin gate

This commit is contained in:
TimmensOne
2023-03-31 17:17:09 +02:00
parent 7a95a3d36f
commit 8b7ae81d66
11 changed files with 80 additions and 86 deletions

View File

@@ -11,5 +11,7 @@
@else
<p>No devices found</p>
@endunless
<button><a href="devices/create">Device</a></button>
@can('admin-only')
<button><a href="devices/create">Device</a></button>
@endcan
@endsection