Fix results comments permission helper [SCI-6146] (#3594)

Co-authored-by: Anton <anton@scinote.net>
This commit is contained in:
aignatov-bio 2021-10-14 11:48:09 +02:00 committed by GitHub
parent ed27197f83
commit 69a3c5f5ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,7 @@ module CommentHelper
when 'StepComment'
can_update_comment_in_my_module_steps?(comment)
when 'ResultComment'
can_manage_result_comment?(comment.becomes(Comment))
can_manage_result_comment?(comment)
when 'ProjectComment'
can_manage_project_comment?(comment)
else