mirror of
https://github.com/flarum/core.git
synced 2025-07-25 02:31:17 +02:00
incorrect ability used, drop prefix discussion.
This commit is contained in:
committed by
Daniël Klabbers
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');
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user