This is an automated email from the ASF dual-hosted git repository.

dhavaljrajpara pushed a commit to branch ranger-2.10
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/ranger-2.10 by this push:
     new 2f0bd8705 RANGER-5853 : Admin unable to assign groups during user 
creation. (#1326)
2f0bd8705 is described below

commit 2f0bd8705af566a46063f06a5a8f2fd9977ba6fc
Author: Dhaval Rajpara <[email protected]>
AuthorDate: Fri Oct 23 19:25:47 2026 +0530

    RANGER-5853 : Admin unable to assign groups during user creation. (#1326)
---
 .../src/views/UserGroupRoleListing/users_details/UserForm.jsx    | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git 
a/security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/users_details/UserForm.jsx
 
b/security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/users_details/UserForm.jsx
index fbeaaceb0..68de67e09 100644
--- 
a/security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/users_details/UserForm.jsx
+++ 
b/security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/users_details/UserForm.jsx
@@ -35,7 +35,12 @@ import {
   UserTypes
 } from "Utils/XAEnums";
 import { toast } from "react-toastify";
-import { InfoIcon, getUserAccessRoleList, isSystemAdmin, serverError } from 
"Utils/XAUtils";
+import {
+  InfoIcon,
+  getUserAccessRoleList,
+  isSystemAdmin,
+  serverError
+} from "Utils/XAUtils";
 import { getUserProfile, setUserProfile } from "Utils/appState";
 import { cloneDeep, has, isEmpty, isUndefined } from "lodash";
 import { SyncSourceDetails } from 
"Views/UserGroupRoleListing/SyncSourceDetails";
@@ -278,7 +283,7 @@ function UserForm(props) {
   };
 
   const disabledGroupField = () => {
-    return !(isSystemAdmin() && isEditView && isInternalUser)
+    return isEditView ? !(isSystemAdmin() && isInternalUser) : false;
   };
 
   const userRoleListData = () => {

Reply via email to