Skip to content

Commit f1aded0

Browse files
Merge pull request #333 from SebastiaanKloos/fix-changelog
Add changelog feature flag check to show method
2 parents a1d8f8b + d31ab24 commit f1aded0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/Http/Controllers/ChangelogController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ public function index()
1818

1919
public function show(Changelog $changelog)
2020
{
21+
abort_unless(app(GeneralSettings::class)->enable_changelog, 404);
22+
2123
abort_if($changelog->published_at > now(), 404);
2224

2325
return view('changelog', [

0 commit comments

Comments
 (0)