GaOrtiga opened a new pull request, #7427:
URL: https://github.com/apache/cloudstack/pull/7427

   ### Description
   
   Uploading a local volume is made possible through the API 
`getUploadParamsForVolume`. However, the UI still shows this button even if the 
user's role does not have access to this API, returning the error 404 if the 
user tries to press it. A validation was added to hide this button when the 
user does not have permission to use the API.
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [X] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [ ] Major
   - [X] Minor
   - [ ] Trivial
   
   
   ### Screenshots (if appropriate):
   When user is allowed to use the API `getUploadParamsForVolume`:
   
![image](https://user-images.githubusercontent.com/49285692/231255918-30e31577-695e-4ef7-93a8-f535ecf2e3b7.png)
   
   When user is not allowed to use the API `getUploadParamsForVolume`:
   
![image](https://user-images.githubusercontent.com/49285692/231255946-19b26b06-99b1-480b-9c44-bf39c5d73cb4.png)
   
   
   
   <!-- Please read the 
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) 
document -->
   


-- 
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]

Reply via email to