Project

General

Profile

Actions

Defect #37229

closed

Ignore workflow transitions that already defined and now is not appliable

Added by salman mp over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues workflow
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Suppose some workflow transitions defined for one role. Then if permissions of add_issues and edit_issues removed for that role, Admin can see their transitions related statuses as allowed new statuses, when editing an issue.
There is no way to remove that transitions (except adding permission of add/edit to role temporarily), because in workflow transition edit page, only roles that can add and edit issues are listed.


Files

issues.patch (659 Bytes) issues.patch filter roles that can add/edit issues as Admin roles instead of all roles salman mp, 2022-06-09 13:10

Related issues

Related to Redmine - Defect #37635: Respect Role#consider_workflow? when checking for allowed status transitionsClosedGo MAEDA

Actions
Actions #1

Updated by Go MAEDA over 2 years ago

  • Tracker changed from Patch to Defect
  • Status changed from New to Confirmed

salman mp wrote:

There is no way to remove that transitions (except adding permission of add/edit to role temporarily), because in workflow transition edit page, only roles that can add and edit issues are listed.

Confirmed the issue.

Here are the steps I tried:

1. Load the bundled test fixture by running `bin/rails db:fixtures:load`
2. Remove "Add issues" and "Edit issues" permission from "Manager" role
3. Go to /workflows/edit page. "Manager" does not appear in "Role" drop-down

Actions #2

Updated by Mischa The Evil about 2 years ago

  • Related to Defect #37635: Respect Role#consider_workflow? when checking for allowed status transitions added
Actions #3

Updated by Go MAEDA about 2 years ago

  • Status changed from Confirmed to Closed
  • Resolution set to Fixed

Fixed by r21817.

Actions

Also available in: Atom PDF