From 193f92c89ba1d85c52d3fcaba4876ba4815601b2 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 13 Jan 2025 18:17:02 +0100 Subject: [PATCH] requires_login --- app/controllers/discourse_rewind/rewinds_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/discourse_rewind/rewinds_controller.rb b/app/controllers/discourse_rewind/rewinds_controller.rb index 00a15dd..cccff9f 100644 --- a/app/controllers/discourse_rewind/rewinds_controller.rb +++ b/app/controllers/discourse_rewind/rewinds_controller.rb @@ -4,6 +4,8 @@ module ::DiscourseRewind class RewindsController < ::ApplicationController requires_plugin PLUGIN_NAME + requires_login + def show DiscourseRewind::Rewind::Fetch.call(service_params) do on_model_not_found(:year) { raise Discourse::NotFound }