This is an automated email from the ASF dual-hosted git repository.
dhavaljrajpara pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/master by this push:
new 50507b188 RANGER-5853 : Admin unable to assign groups during user
creation. (#1325)
50507b188 is described below
commit 50507b18858b50ce6504b28def8500eaf6b87e9a
Author: Dhaval Rajpara <[email protected]>
AuthorDate: Fri Oct 23 19:24:15 2026 +0530
RANGER-5853 : Admin unable to assign groups during user creation. (#1325)
---
.../views/UserGroupRoleListing/users_details/UserForm.jsx | 12 +++++++++---
1 file changed, 9 insertions(+), 3 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 cede7266b..082c1e67b 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
@@ -37,7 +37,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";
@@ -290,7 +295,7 @@ function UserForm(props) {
};
const disabledGroupField = () => {
- return !(isSystemAdmin() && isEditView && isInternalUser)
+ return isEditView ? !(isSystemAdmin() && isInternalUser) : false;
};
const userRoleListData = () => {
@@ -478,7 +483,8 @@ function UserForm(props) {
position="right"
message={
isSpiffeAsUsernameEnabled()
- ?
RegexMessage.MESSAGE.userNameValidationMsgWithSpiffe
+ ? RegexMessage.MESSAGE
+ .userNameValidationMsgWithSpiffe
: RegexMessage.MESSAGE.userNameValidationMsg
}
/>