Merge pull request #6289 from G-Chubinidze/gc_SCI_9289

Removed delete/edit comment access on archived results [SCI-9289]
This commit is contained in:
Martin Artnik 2023-09-27 12:41:03 +02:00 committed by GitHub
commit 9b2e5b6455
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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