プロジェクト

全般

プロフィール

Vote #70292

未完了

Edit comments for a certain time

Admin Redmine さんがほぼ4年前に追加. ほぼ4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Permissions and roles_17
対象バージョン:
-
開始日:
2011/07/08
期日:
進捗率:

0%

予定工数:
category_id:
17
version_id:
0
issue_org_id:
8768
author_id:
11698
assigned_to_id:
0
comments:
3
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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.


journals

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.
--------------------------------------------------------------------------------
Yes. :) But I don't know, how user can change his comment without this link?
Of course, it is better to fix.
--------------------------------------------------------------------------------
Part 2 - for controller.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ4年前に更新

  • カテゴリPermissions and roles_17 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0