mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
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:
commit
9b2e5b6455
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