Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagof committed Sep 2, 2022
1 parent f810e53 commit b9866d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/fullcalendar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
<x:filament-fullcalendar::create-event-modal />
@endif

@if($this::canEdit())
@if($this::canView())
<x:filament-fullcalendar::edit-event-modal />
@endif
</x-filament::widget>
2 changes: 1 addition & 1 deletion src/Widgets/Concerns/CanManageEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit b9866d2

Please sign in to comment.