Bug #30395
openDeselect all working even if all items in list are disabled
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1784452
Description of problem:
When I am logged in as non-admin user with some role and I try to remove all roles from my account by clicking on minus in top corner, roles are moved from selected list to list for adding roles. I shouldn't be allowed to do that, because removing roles are disabled. Adding them back by clicking is not working as expected. After submitting, changes are not applied as expected.
Version-Release number of selected component (if applicable):
sat 6.7
How reproducible:
always
Steps to Reproduce:
1. Create non-admin user with at least one role. (for example 'Viewer')
2. Login to Satellite as this user
3. Navigate to 'My account' by clicking on username in right top corner
4. In 'Roles' tab click on minus to 'Deselect All' roles
Actual results:
Roles are removed from 'Selected items'
Expected results:
Clicking on minus shouldn't do anything if all items are disabled from removing. I expect same behaviour as clicking on plus.
Additional info:
Updated by Tomer Brisker almost 4 years ago
- Category set to Users, Roles and Permissions