mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
Make Topology view and Instances visible only to system admin/auditor
This commit is contained in:
parent
8c187c74fc
commit
2c673c8f1f
@ -195,9 +195,9 @@ function getRouteConfig(userProfile = {}) {
|
||||
deleteRoute('host_metrics');
|
||||
deleteRouteGroup('settings');
|
||||
deleteRoute('management_jobs');
|
||||
if (userProfile?.isOrgAdmin) return routeConfig;
|
||||
deleteRoute('topology_view');
|
||||
deleteRoute('instances');
|
||||
if (userProfile?.isOrgAdmin) return routeConfig;
|
||||
if (!userProfile?.isNotificationAdmin) deleteRoute('notification_templates');
|
||||
|
||||
return routeConfig;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user