Skip to content

Commit

Permalink
Merge pull request #51 from square-bit/fix/wrong-permission-check
Browse files Browse the repository at this point in the history
Fixes wrong permissions check.
  • Loading branch information
saade authored Sep 18, 2022
2 parents 2ee7ff2 + b9866d2 commit 39b085d
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 39b085d

Please sign in to comment.