プロジェクト

全般

プロフィール

Vote #81298

完了

Time entry error on private issue

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Time tracking_13
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
13
version_id:
167
issue_org_id:
34856
author_id:
147409
assigned_to_id:
107353
comments:
13
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
160
ステータス-->[Closed]

説明

When someone edit a private issue that he/she is not auther of that, and simultaiusly changed assignee and submit a time entry, there will raise an error that says "issue number is wrong" and "time entry is wrong" too.


journals

It's a patch that solve the problem

--------------------------------------------------------------------------------
Also when that user has a role, that only permit to see issues, owned by he/she or assigned to he/she.
--------------------------------------------------------------------------------
Add a test to reproduce the problem.
The test will be successful after applying the time_entry.diff patch
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Setting the target version to 4.1.3
--------------------------------------------------------------------------------
I would like to take a look on the fix proposed.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I've updated the proposed patch to fix the test (it failed in my environment) and to fix the Rubocop warnings.
--------------------------------------------------------------------------------
Also, I've added an extra condition to allow this only when the previous assignee is the current user (@issue.previous_assignee == User.current@). Please let me know what do you think.
--------------------------------------------------------------------------------
Patch committed.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

duplicates,Closed,35038,Error message when limited user want to add time entry and change assignee for a private issue

Admin Redmine さんが3年以上前に更新

  • カテゴリTime tracking_13 にセット
  • 対象バージョン4.1.4_167 にセット

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

いいね!0
いいね!0