mirror of
https://github.com/ansible/awx.git
synced 2026-05-18 06:47:41 -02:30
Make Topology view and Instances visible only to system admin/auditor
This commit is contained in:
@@ -195,9 +195,9 @@ function getRouteConfig(userProfile = {}) {
|
|||||||
deleteRoute('host_metrics');
|
deleteRoute('host_metrics');
|
||||||
deleteRouteGroup('settings');
|
deleteRouteGroup('settings');
|
||||||
deleteRoute('management_jobs');
|
deleteRoute('management_jobs');
|
||||||
if (userProfile?.isOrgAdmin) return routeConfig;
|
|
||||||
deleteRoute('topology_view');
|
deleteRoute('topology_view');
|
||||||
deleteRoute('instances');
|
deleteRoute('instances');
|
||||||
|
if (userProfile?.isOrgAdmin) return routeConfig;
|
||||||
if (!userProfile?.isNotificationAdmin) deleteRoute('notification_templates');
|
if (!userProfile?.isNotificationAdmin) deleteRoute('notification_templates');
|
||||||
|
|
||||||
return routeConfig;
|
return routeConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user