プロジェクト

全般

プロフィール

Vote #79763

完了

Useless "Delete issues" tracker permission is shown on the role page for Anonymous and Non-member

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

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

0%

予定工数:
category_id:
17
version_id:
127
issue_org_id:
30431
author_id:
332
assigned_to_id:
332
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Since you cannot grant a "Delete issues" permission for Anonymous and Non-member roles, "Delete issues" column in the tracker permission table on the role page is useless. The column should be hidden like default "Reporter" role.

!{width: 773px; border: 1px solid #ccc;}.delete-issues-tracker-permission@2x.png!


journals

It was displayed "Delete issues" column in the tracker permission table on the role page because it was not confirmed the settable permissions of the role.
I attached a patch.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
LGTM but I propose a slight change as follows. Using @&@ operator is simpler and much faster than using @delete_if@.

<pre><code class="erb">
<% permissions = [:view_issues, :add_issues, :edit_issues, :add_issue_notes, :delete_issues] & setable_permissions.collect(&:name) %>
</code></pre>

Setting the target version to 4.1.0.
--------------------------------------------------------------------------------
Committed the patch. Thank you for fixing this issue.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリPermissions and roles_17 にセット
  • 対象バージョン4.1.0_127 にセット

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

いいね!0
いいね!0