Skip to content

Commit

Permalink
fix: Method expects int, not array
Browse files Browse the repository at this point in the history
  • Loading branch information
zooley committed Apr 5, 2024
1 parent b704899 commit f8dea47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Listeners/Search/Pages/Pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function handle(Searching $event): void
$rows = Page::query()
->with('viewlevel')
->whereState('published')
->whereAccess([0, 1], auth()->user())
->whereAccess(1, auth()->user())
->whereSearch($event->search)
->limit($event->limit * $event->page)
->get();
Expand Down

0 comments on commit f8dea47

Please sign in to comment.