Multiple-select checkboxes activate "dangerous" buttons regardless of permissions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Users have been reporting confusion surrounding bulk-action buttons like "Delete Images", etc. that un-grey themselves when selecting rows in the table via checkboxes, despite the fact that the users do not have rights to perform the actions.
This is ultimately harmless, as the GUI kicks back a "permission denied" error, but it is always better to refrain from showing controls to users that they cannot use.
A simple test case, that works even for Admin users:
1. Login to Horizon
2. Go to "Project" -> "Access & Security"
3. Click on the checkbox for the "default" security group, watch the bulk "Delete Security Groups" button un-grey itself
4. Click on the button, and watch Horizon throw an error
Expected behavior:
Aggregate action buttons for "dangerous" (as per the name of the CSS class that gets applied) actions should not un-grey unless the user has rights to perform them on at least one of the selected items.
Actual behavior:
The button just un-greys itself, and leaves it to the back-end to sort out the problems.
Changed in horizon: | |
assignee: | Nicolas Simonds (nicolas.simonds) → nobody |
Changed in horizon: | |
status: | In Progress → Confirmed |
Fix proposed to branch: master /review. openstack. org/18500
Review: https:/