mirror of
https://github.com/flarum/core.git
synced 2025-08-05 16:07:34 +02:00
incorrect ability used, drop prefix discussion.
This commit is contained in:
committed by
Daniël Klabbers
parent
223f4d93d4
commit
3b3459ad3d
@@ -115,7 +115,7 @@ class ShowDiscussionControllerTest extends ApiControllerTestCase
|
|||||||
$events = app(Dispatcher::class);
|
$events = app(Dispatcher::class);
|
||||||
|
|
||||||
$events->listen(ScopeModelVisibility::class, function (ScopeModelVisibility $event) {
|
$events->listen(ScopeModelVisibility::class, function (ScopeModelVisibility $event) {
|
||||||
if ($event->ability === 'discussion.hidePosts') {
|
if ($event->ability === 'hidePosts') {
|
||||||
$event->query->whereRaw('1=1');
|
$event->query->whereRaw('1=1');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user