Edit comments for a certain time
|Category:||Permissions and roles|
It's a 'monkey patch', but it's helpful for me. And I think - not only for me.
I changed 'render_notes' in 'journals_helper.rb'. If user have only permissions 'edit_own_issue_notes' - he's can do it only into 4 hours after comment's creation. After this time user with this permission's can't change his comment.
#3 Updated by Alexander Kulemin over 11 years ago
Part 2 - for controller.