Project

General

Profile

Actions

Patch #8768

open

Edit comments for a certain time

Added by Alexander Kulemin over 13 years ago. Updated over 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Permissions and roles
Target version:
-
Start date:
2011-07-08
Due date:
% Done:

0%

Estimated time:

Description

Hello,

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.


Files

Actions #1

Updated by Alex Shulgin over 13 years ago

And... what about the check in controller? Your patch won't show the link after 4 hours, but the controller will still permit the update action.

Actions #2

Updated by Alexander Kulemin over 13 years ago

Yes. :) But I don't know, how user can change his comment without this link?
Of course, it is better to fix.

Actions

Also available in: Atom PDF