From: Vincent Vanwaelscappel Date: Thu, 4 Dec 2025 16:40:35 +0000 (+0100) Subject: #7880 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c268cfc43198c818d0b48c6c25ce783e24db5216;p=fluidbook-toolbox.git #7880 --- diff --git a/resources/views/vendor/backpack/crud/buttons/delete.blade.php b/resources/views/vendor/backpack/crud/buttons/delete.blade.php index 9164781c3..f6a5837f1 100644 --- a/resources/views/vendor/backpack/crud/buttons/delete.blade.php +++ b/resources/views/vendor/backpack/crud/buttons/delete.blade.php @@ -1,4 +1,4 @@ -@if ($entry->allowsDelete()) +@if(!method_exists($entry,'allowsDelete') || $entry->allowsDelete()) {{ trans('backpack::crud.delete') }} diff --git a/resources/views/vendor/backpack/crud/buttons/fluidbook_publication/delete.blade.php b/resources/views/vendor/backpack/crud/buttons/fluidbook_publication/delete.blade.php index 9e27ce057..a7ba85c7f 100644 --- a/resources/views/vendor/backpack/crud/buttons/fluidbook_publication/delete.blade.php +++ b/resources/views/vendor/backpack/crud/buttons/fluidbook_publication/delete.blade.php @@ -3,6 +3,6 @@ $deleteConfirmTitle=__('Suppression d\'une publication'); $deleteConfirmText=__('Souhaitez-vous réellement supprimer cette publication ?'); @endphp -@if($entry->allowsDelete()) +@if(!method_exists($entry,'allowsDelete') || $entry->allowsDelete()) @include('crud::buttons.delete') @endif