mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02: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)
|
if (userProfile?.isSuperUser || userProfile?.isSystemAuditor)
|
||||||
return routeConfig;
|
return routeConfig;
|
||||||
|
deleteRoute('host_metrics');
|
||||||
deleteRouteGroup('settings');
|
deleteRouteGroup('settings');
|
||||||
deleteRoute('management_jobs');
|
deleteRoute('management_jobs');
|
||||||
if (userProfile?.isOrgAdmin) return routeConfig;
|
if (userProfile?.isOrgAdmin) return routeConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user