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')) {