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

   ### Description
   
   VMs and templates settings can only be manipulated through UI if the user's 
account role has permission to `updateVirtualMachine` and `updateTemplate` 
APIs. If the role does not have permission to both APIs simultaneously the 
interface blocks the manipulation of VMs and templates settings.
   
   This PR addresses this issue by making those APIs permissions independent 
from each other.
   
   ### 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)
   - [ ] build/CI
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [ ] Major
   - [X] Minor
   - [ ] Trivial
   
   ### Screenshots (if appropriate):
   
   ### How Has This Been Tested?
   
   I've manipulated `updateVirtualMachine` and `updateTemplate` APIs 
permissions and I've gathered the following results:
   
   | Test number | `updateVirtualMachine` | `updateTemplate` | Can manipulate 
VM settings? (Y/N) | Can manipulate template settings? (Y/N) | Expected 
results? (Y/N) | 
   | :---: | :---: | :---: | :---: | :---: | :---: |
   | 1 | `Allow` | `Allow` | Y | Y | Y |
   | 2 | `Allow` | `Deny`  | Y | N | Y |
   | 3 | `Deny`  | `Allow` | N | Y | Y |
   | 4 | `Deny`  | `Deny`  | N | N | Y |
   
   


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