From d31ab2415cb466f28b18a9b97bb42823b09e4000 Mon Sep 17 00:00:00 2001 From: Sebastiaan Kloos Date: Wed, 26 Nov 2025 15:27:35 +0100 Subject: [PATCH] Add changelog feature flag check to show method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ensures that individual changelog entries respect the enable_changelog setting by returning a 404 when the feature is disabled. This provides consistency with the index method which already has this check. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/Http/Controllers/ChangelogController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/ChangelogController.php b/app/Http/Controllers/ChangelogController.php index 417beb72..e868fdd6 100644 --- a/app/Http/Controllers/ChangelogController.php +++ b/app/Http/Controllers/ChangelogController.php @@ -18,6 +18,8 @@ public function index() public function show(Changelog $changelog) { + abort_unless(app(GeneralSettings::class)->enable_changelog, 404); + abort_if($changelog->published_at > now(), 404); return view('changelog', [