From ce1fe53cebbd57e801533fb038b4a129aaeb25fe Mon Sep 17 00:00:00 2001 From: Andrej Date: Mon, 25 Sep 2023 11:14:22 +0200 Subject: [PATCH] Fix comment permission check [SCI-9367] --- app/controllers/comments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 6341043e4..162f8224e 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -112,6 +112,6 @@ class CommentsController < ApplicationController end def check_manage_permissions - comment_editable?(@comment) + render_403 unless comment_editable?(@comment) end end