From 78f71fc3bf451c010cc9523e93eb74a41c8d1313 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Wed, 16 Dec 2020 19:24:29 +0100 Subject: [PATCH] RfC require user before accessing anything else --- app/controllers/request_for_comments_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/request_for_comments_controller.rb b/app/controllers/request_for_comments_controller.rb index 5cb3728b..58dee88e 100644 --- a/app/controllers/request_for_comments_controller.rb +++ b/app/controllers/request_for_comments_controller.rb @@ -1,9 +1,9 @@ class RequestForCommentsController < ApplicationController include SubmissionScoring - before_action :set_request_for_comment, only: [:show, :edit, :update, :destroy, :mark_as_solved, :set_thank_you_note] - before_action :set_study_group_grouping, only: %i[index get_my_comment_requests get_rfcs_with_my_comments] before_action :require_user! + before_action :set_request_for_comment, only: [:show, :mark_as_solved, :set_thank_you_note] + before_action :set_study_group_grouping, only: %i[index get_my_comment_requests get_rfcs_with_my_comments] def authorize! authorize(@request_for_comments || @request_for_comment)