RBAC: only superuse and auditor can see HostMetrics

This commit is contained in:
Zita Nemeckova
2023-02-22 15:44:34 +01:00
committed by John Westcott IV
parent d40fdd77ad
commit 9f3c4f6240

View File

@@ -187,6 +187,7 @@ function getRouteConfig(userProfile = {}) {
if (userProfile?.isSuperUser || userProfile?.isSystemAuditor)
return routeConfig;
deleteRoute('host_metrics');
deleteRouteGroup('settings');
deleteRoute('management_jobs');
if (userProfile?.isOrgAdmin) return routeConfig;