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:
parent
213045aa03
commit
63b039a800
@ -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');
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user