From 25707478eaee5d7637418110ba2ea5afbd9a5df6 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Mon, 21 Nov 2022 10:47:31 +0100 Subject: [PATCH] Require user for Community Solution Fixes CODEOCEAN-F7 --- app/controllers/community_solutions_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/community_solutions_controller.rb b/app/controllers/community_solutions_controller.rb index c6d95254..827c9557 100644 --- a/app/controllers/community_solutions_controller.rb +++ b/app/controllers/community_solutions_controller.rb @@ -5,6 +5,7 @@ class CommunitySolutionsController < ApplicationController include RedirectBehavior include SubmissionParameters + before_action :require_user! before_action :set_community_solution, only: %i[edit update] before_action :set_community_solution_lock, only: %i[edit] before_action :set_exercise_and_submission, only: %i[edit update]