-
-
- {t('cache-managers.no-filter-cache')}>}
- icon={}
- headingLevel="h2"
- />
- {t('cache-managers.no-caches-body')}
-
-
+ {displayEmptyState()}
|
) : (
diff --git a/src/app/Caches/Create/FeaturesSelector.tsx b/src/app/Caches/Create/FeaturesSelector.tsx
index 220344437..dc167a555 100644
--- a/src/app/Caches/Create/FeaturesSelector.tsx
+++ b/src/app/Caches/Create/FeaturesSelector.tsx
@@ -14,10 +14,11 @@ import { useCreateCache } from '@app/services/createCacheHook';
import { useConnectedUser } from '@app/services/userManagementHook';
import { validFeatures } from '@app/utils/featuresValidation';
import { useFetchProtobufTypes } from '@app/services/protobufHook';
+import { ConsoleACL } from '@services/securityService';
const FeaturesSelector = () => {
const { t } = useTranslation();
- const { notSecured } = useConnectedUser();
+ const { notSecured, connectedUser } = useConnectedUser();
const { protobufTypes } = useFetchProtobufTypes();
const { configuration, setConfiguration, addFeature, removeFeature } = useCreateCache();
@@ -84,6 +85,10 @@ const FeaturesSelector = () => {
);
};
+ const isSecuredCacheCreationEnabled = () => {
+ return !notSecured && ConsoleServices.security().hasConsoleACL(ConsoleACL.ADMIN, connectedUser);
+ }
+
return (