1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00

incorrect ability used, drop prefix discussion.

This commit is contained in:
Daniel Klabbers
2019-11-21 13:14:35 +01:00
committed by Daniël Klabbers
parent 223f4d93d4
commit 3b3459ad3d

View File

@@ -115,7 +115,7 @@ class ShowDiscussionControllerTest extends ApiControllerTestCase
$events = app(Dispatcher::class);
$events->listen(ScopeModelVisibility::class, function (ScopeModelVisibility $event) {
if ($event->ability === 'discussion.hidePosts') {
if ($event->ability === 'hidePosts') {
$event->query->whereRaw('1=1');
}
});