From 2132b4564c56c5cd83a2cdc64bfc205d3df398e8 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 23 Oct 2024 22:21:42 +1100 Subject: [PATCH] Limit what we show users for echo/file areas --- resources/views/echoarea/addedit.blade.php | 10 +++++++--- resources/views/filearea/addedit.blade.php | 13 +++++++++---- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/resources/views/echoarea/addedit.blade.php b/resources/views/echoarea/addedit.blade.php index 2832846..8fed911 100644 --- a/resources/views/echoarea/addedit.blade.php +++ b/resources/views/echoarea/addedit.blade.php @@ -52,6 +52,7 @@ + @can('admin',$o)
@@ -90,6 +91,7 @@
+ @endcan
@@ -106,6 +108,7 @@
+ @can('admin',$o)
@@ -131,8 +134,10 @@
+ @endcan + @can('admin',$o)
@@ -143,11 +148,10 @@
Cancel - @can('admin',$o) - - @endcan +
+ @endcan
diff --git a/resources/views/filearea/addedit.blade.php b/resources/views/filearea/addedit.blade.php index 7318e3d..301ed47 100644 --- a/resources/views/filearea/addedit.blade.php +++ b/resources/views/filearea/addedit.blade.php @@ -1,4 +1,5 @@ +@use(App\Models\Domain) @extends('layouts.app') @section('htmlheader_title') @@ -21,7 +22,7 @@ @@ -51,6 +52,7 @@ + @can('admin',$o)
@@ -76,6 +78,7 @@
+ @endcan
@@ -92,6 +95,7 @@
+ @can('admin',$o)
@@ -130,8 +134,10 @@
+ @endcan + @can('admin',$o)
@@ -142,11 +148,10 @@
Cancel - @can('admin',$o) - - @endcan +
+ @endcan