mirror of
https://github.com/ansible/awx.git
synced 2026-02-02 01:58:09 -03:30
RBAC: only superuse and auditor can see HostMetrics
This commit is contained in:
committed by
John Westcott IV
parent
d40fdd77ad
commit
9f3c4f6240
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user