1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 09:26:34 +02:00

[review] using orWhere to allow any where to follow in extensions

This commit is contained in:
Daniël Klabbers
2019-11-19 12:47:51 +01:00
parent 622e2a6644
commit 521834f5da
2 changed files with 6 additions and 4 deletions

View File

@@ -115,7 +115,7 @@ class ShowDiscussionControllerTest extends ApiControllerTestCase
$events = app(Dispatcher::class);
$events->listen(ScopeModelVisibility::class, function (ScopeModelVisibility $event) {
$event->query->orWhereRaw('1=1');
$event->query->whereRaw('1=1');
});
$response = $this->callWith([], ['id' => 4]);