1
0
mirror of https://github.com/flarum/core.git synced 2025-05-05 23:15:22 +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 213045aa03
commit 63b039a800

View File

@ -117,7 +117,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');
}
});