1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00

fix: force permissions export to only be enterprise in ui (#4760)

This commit is contained in:
Simon Hornby 2023-09-21 11:12:20 +02:00 committed by GitHub
parent 5e6ed0baac
commit b1234fb89c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = () => {
<PageHeader.Divider />
<ConditionallyRender
condition={Boolean(accessOverviewEnabled)}
condition={
isEnterprise() &&
Boolean(accessOverviewEnabled)
}
show={() => (
<>
<Tooltip