diff --git a/app/permissions/result.rb b/app/permissions/result.rb index 921a786d5..71ef8ebed 100644 --- a/app/permissions/result.rb +++ b/app/permissions/result.rb @@ -30,7 +30,7 @@ Canaid::Permissions.register_for(ResultComment) do %i(manage_result_comment) .each do |perm| can perm do |_, comment| - !comment.result.my_module.archived_branch? + !comment.result.my_module.archived_branch? && comment.result.active? end end