Skip to content

Commit

Permalink
Disabled the privilege dropdown for root user
Browse files Browse the repository at this point in the history
By allowing root user privilege changes to  Operator or Read Only,
after login with root user seeing privilege access issues in some
pages and not possible to change administrator again.

Allowed root user to change password alone and disabled
the privilege changes

Change-Id: I2be93060fb30e1f08dc2ea20a30fb998dc83ee0f
Signed-off-by: aravinths1 <aravinths@ami.com>
  • Loading branch information
aravinths1 authored and kirankumarb07 committed Jun 7, 2024
1 parent b325541 commit 2b02103
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/SecurityAndAccess/UserManagement/ModalUser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
:options="privilegeTypes"
data-test-id="userManagement-select-privilege"
:state="getValidationState($v.form.privilege)"
:disabled="!newUser && originalUsername === 'root'"
@input="$v.form.privilege.$touch()"
>
<template #first>
Expand Down

0 comments on commit 2b02103

Please sign in to comment.