mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
Removed delete/edit comment access on archived results [SCI-9289]
This commit is contained in:
parent
2670b6f74a
commit
4d3c0dd919
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue