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

   ### Description
   
   Admins are able to lock and unlock users through the APIs `lockUser` and 
`enableUser`; however, this feature is not currently available in the UI. To 
address this issue, this PR adds a button to the page of `Enabled` users which 
allows admins to lock them through the UI. Furthermore, when a user is 
`Locked`, the "Enable User" button is now visible for admins.
   
   ### 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):
   
   
![image](https://github.com/apache/cloudstack/assets/25729641/54f6a80f-1de6-48f2-ab2a-72ceb7f8e74f)
   
![image](https://github.com/apache/cloudstack/assets/25729641/eb5dc680-ee4d-4ed7-98ac-8a3eda3cc456)
   
   
   ### How Has This Been Tested?
   
   1. In the root admin account, I accessed the page of an `Enabled` user and 
verified that the "Lock User" button was available;
   2. I clicked the "Lock User" button and verified that the user's state 
changed to `Locked`;
   3. I verified that the "Enable User" button was now visible.
   4. I clicked the "Enable User" button and verified that the user's state 
changed to `Enabled`;
   5. In an account that had the role `User`, I accessed the user's own page 
and verified that the "Lock User" button was not visible.


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