From b1234fb89c545f6d7b71707ca66a613efa4a49ca Mon Sep 17 00:00:00 2001 From: Simon Hornby Date: Thu, 21 Sep 2023 11:12:20 +0200 Subject: [PATCH] fix: force permissions export to only be enterprise in ui (#4760) --- frontend/src/component/admin/users/UsersList/UsersList.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/admin/users/UsersList/UsersList.tsx b/frontend/src/component/admin/users/UsersList/UsersList.tsx index 027b107e81..74bb5ad1eb 100644 --- a/frontend/src/component/admin/users/UsersList/UsersList.tsx +++ b/frontend/src/component/admin/users/UsersList/UsersList.tsx @@ -34,6 +34,7 @@ import { RoleCell } from 'component/common/Table/cells/RoleCell/RoleCell'; import { useSearch } from 'hooks/useSearch'; import { Download } from '@mui/icons-material'; import { useUiFlag } from 'hooks/useUiFlag'; +import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig'; const UsersList = () => { const navigate = useNavigate(); @@ -44,6 +45,7 @@ const UsersList = () => { const [pwDialog, setPwDialog] = useState<{ open: boolean; user?: IUser }>({ open: false, }); + const { isEnterprise } = useUiConfig(); const [delDialog, setDelDialog] = useState(false); const [showConfirm, setShowConfirm] = useState(false); const [emailSent, setEmailSent] = useState(false); @@ -271,7 +273,10 @@ const UsersList = () => { ( <>