You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by dh...@apache.org on 2026/10/21 12:16:35 UTC
(ranger) 01/01: RANGER-5853 : Admin unable to assign groups during user creation.
This is an automated email from the ASF dual-hosted git repository.
dhavaljrajpara pushed a commit to branch RANGER-5853
in repository https://gitbox.apache.org/repos/asf/ranger.git
commit a6d4c5a3b1e644d2ac08dcaaf7f2000d3e22d5ba
Author: Dhaval Rajpara <dh...@apache.org>
AuthorDate: Wed Oct 21 17:45:34 2026 +0530
RANGER-5853 : Admin unable to assign groups during user creation.
---
.../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
}
/>