From b9866d2ec9eeb1483750b029f55aff3ebba8497e Mon Sep 17 00:00:00 2001 From: Tiago Fernandes Date: Fri, 2 Sep 2022 12:07:44 +0100 Subject: [PATCH] done --- resources/views/fullcalendar.blade.php | 2 +- src/Widgets/Concerns/CanManageEvents.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/fullcalendar.blade.php b/resources/views/fullcalendar.blade.php index 50ee074..688c6c7 100644 --- a/resources/views/fullcalendar.blade.php +++ b/resources/views/fullcalendar.blade.php @@ -101,7 +101,7 @@ @endif - @if($this::canEdit()) + @if($this::canView()) @endif diff --git a/src/Widgets/Concerns/CanManageEvents.php b/src/Widgets/Concerns/CanManageEvents.php index 95e0c42..1c2312f 100644 --- a/src/Widgets/Concerns/CanManageEvents.php +++ b/src/Widgets/Concerns/CanManageEvents.php @@ -51,7 +51,7 @@ public function onEventClick($event): void } $this->editEventForm - ->disabled(! static::canView($event)) + ->disabled(! static::canEdit($event)) ->fill($event); if (method_exists($this, 'resolveEventRecord')) {