Wizard: Fix users bug - 'wheel' group removal
If 'wheel' group was removed the Administrator checkbox stayed check. This unchecks it.
This commit is contained in:
parent
bd09a7faf3
commit
13e59dff13
1 changed files with 3 additions and 0 deletions
|
|
@ -1106,6 +1106,9 @@ export const wizardSlice = createSlice({
|
|||
(group) => group === action.payload.group
|
||||
);
|
||||
if (groupIndex !== -1) {
|
||||
if (action.payload.group === 'wheel') {
|
||||
state.users[action.payload.index].isAdministrator = false;
|
||||
}
|
||||
state.users[action.payload.index].groups.splice(groupIndex, 1);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue