mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
->where('approved', true)
This commit is contained in:
@@ -18,6 +18,11 @@ 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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user