Fix comment permission check [SCI-9367]

This commit is contained in:
Andrej 2023-09-25 11:14:22 +02:00
parent 767c98c101
commit ce1fe53ceb

View file

@ -112,6 +112,6 @@ class CommentsController < ApplicationController
end
def check_manage_permissions
comment_editable?(@comment)
render_403 unless comment_editable?(@comment)
end
end