->where('approved', true)

This commit is contained in:
HolgerHatGarKeineNode
2023-02-11 13:48:17 +01:00
parent 400b7b8102
commit e061f91c0d

View File

@@ -18,11 +18,6 @@ class ArticleOverview extends Component
'tags', 'tags',
]) ])
->where('type', 'markdown_article') ->where('type', 'markdown_article')
->when(app()->environment('production'),
fn($query) => $query
->whereHas('createdBy.roles',
fn($query) => $query->where('roles.name', 'news-editor'))
)
->where('approved', true) ->where('approved', true)
->orderByDesc('created_at') ->orderByDesc('created_at')
->get(), ->get(),