From 1be3cf14f456e65be102cc10b057f7ee53a77921 Mon Sep 17 00:00:00 2001 From: Jatin Mehta Date: Tue, 15 Nov 2022 22:57:06 +0530 Subject: [PATCH] fix(admin-ui): user delete permission fixed --- .../user-management/components/UserManagement/UserList.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/admin-ui/plugins/user-management/components/UserManagement/UserList.js b/admin-ui/plugins/user-management/components/UserManagement/UserList.js index 922e6ddc5..22ff51074 100644 --- a/admin-ui/plugins/user-management/components/UserManagement/UserList.js +++ b/admin-ui/plugins/user-management/components/UserManagement/UserList.js @@ -18,10 +18,9 @@ import applicationStyle from '../../../../app/routes/Apps/Gluu/styles/applicatio import { useNavigate } from 'react-router-dom' import { hasPermission, - ROLE_DELETE, - ROLE_READ, ROLE_WRITE, USER_READ, + USER_DELETE, } from '../../../../app/utils/PermChecker' import GluuAdvancedSearch from 'Routes/Apps/Gluu/GluuAdvancedSearch' import GluuCommitDialog from '../../../../app/routes/Apps/Gluu/GluuCommitDialog' @@ -146,7 +145,7 @@ function UserList(props) { disabled: !hasPermission(permissions, ROLE_WRITE), })) } - if (hasPermission(permissions, ROLE_DELETE)) { + if (hasPermission(permissions, USER_DELETE)) { myActions.push((rowData) => ({ icon: () => , iconProps: {