Defect #37229
closed
Ignore workflow transitions that already defined and now is not appliable
Added by salman mp almost 4 years ago.
Updated over 3 years ago.
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
|
|
- 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
- Related to Defect #37635: Respect Role#consider_workflow? when checking for allowed status transitions added
- Status changed from Confirmed to Closed
- Resolution set to Fixed
Also available in: Atom
PDF