Removed delete/edit comment access on archived results [SCI-9289]

This commit is contained in:
Giga Chubinidze 2023-09-25 15:33:36 +04:00
parent 2670b6f74a
commit 4d3c0dd919

View file

@ -30,7 +30,7 @@ Canaid::Permissions.register_for(ResultComment) do
%i(manage_result_comment) %i(manage_result_comment)
.each do |perm| .each do |perm|
can perm do |_, comment| can perm do |_, comment|
!comment.result.my_module.archived_branch? !comment.result.my_module.archived_branch? && comment.result.active?
end end
end end