|
|
@@ -4,34 +4,23 @@ import {
|
|
|
import { useTranslation } from 'next-i18next';
|
|
|
import dynamic from 'next/dynamic';
|
|
|
|
|
|
-import { SupportedActionType } from '~/interfaces/activity';
|
|
|
import { CommonProps, useCustomTitle } from '~/pages/utils/commons';
|
|
|
-
|
|
|
import { retrieveServerSideProps } from '../../utils/admin-page-util';
|
|
|
+import { useIsAclEnabled } from '~/stores/context';
|
|
|
|
|
|
const AdminLayout = dynamic(() => import('~/components/Layout/AdminLayout'), { ssr: false });
|
|
|
-
|
|
|
const UserGroupPage = dynamic(() => import('~/components/Admin/UserGroup/UserGroupPage').then(mod => mod.UserGroupPage), { ssr: false });
|
|
|
|
|
|
|
|
|
type Props = CommonProps & {
|
|
|
- currentUser: any,
|
|
|
-
|
|
|
- envVars: any,
|
|
|
- isAclEnabled: boolean,
|
|
|
- isSearchServiceConfigured: boolean,
|
|
|
- isSearchServiceReachable: boolean,
|
|
|
- isMailerSetup: boolean,
|
|
|
- auditLogEnabled: boolean,
|
|
|
- auditLogAvailableActions: SupportedActionType[],
|
|
|
-
|
|
|
- customizeTitle: string,
|
|
|
- siteUrl: string,
|
|
|
+ isAclEnabled: boolean
|
|
|
};
|
|
|
|
|
|
|
|
|
const AdminUserGroupPage: NextPage<Props> = (props) => {
|
|
|
const { t } = useTranslation();
|
|
|
+ useIsAclEnabled(props.isAclEnabled);
|
|
|
+
|
|
|
const title = t('user_group_management.user_group_management');
|
|
|
|
|
|
return (
|