From 07744ca7bd824567887e2b7887b7a1599f2cf17f Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Wed, 18 Jan 2023 13:41:58 -0800 Subject: [PATCH] Reference the consumable instance instead of the model --- resources/views/consumables/view.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/consumables/view.blade.php b/resources/views/consumables/view.blade.php index 11b187e11b..f7f7364ea6 100644 --- a/resources/views/consumables/view.blade.php +++ b/resources/views/consumables/view.blade.php @@ -45,7 +45,7 @@ @endcan - @can('update', \App\Models\Consumable::class) + @can('update', $consumable)
  • {{ trans('button.upload') }}