winterhazel opened a new pull request, #8713: URL: https://github.com/apache/cloudstack/pull/8713
### Description In any instance's page, the volumes tab always gets shown, even if the account does not have permission to list the instance's volumes. This PR adds a check in the UI in order to hide the volumes tab if the current account does not have permission to use the `listVolumes` API. ### Types of changes - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] New feature (non-breaking change which adds functionality) - [ ] Bug fix (non-breaking change which fixes an issue) - [X] Enhancement (improves an existing feature and functionality) - [ ] Cleanup (Code refactoring and cleanup, that may add test cases) ### Feature/Enhancement Scale or Bug Severity #### Feature/Enhancement Scale - [ ] Major - [X] Minor ### Screenshots (if appropriate): Before, a user without permission could access the volumes tab, but the volumes would not get listed. With these changes, the volumes tab does not get shown.  ### How Has This Been Tested? 1. I created a role that had access to `listVolumes`; 2. I created an account using the role; 3. I created a VM using the account; 4. In the created account, I accessed the VM's page and verified that the volumes tab was shown; 5. I removed the access to `listVolumes` from the role created in step 1; 6. In the created account, I accessed the VM's page again and verified that the volumes tab was not shown. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
