RBAC: only superuse and auditor can see HostMetrics

This commit is contained in:
Zita Nemeckova
2023-03-23 14:06:56 -04:00
committed by John Westcott IV
parent d40fdd77ad
commit 9f3c4f6240
+1
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;