mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Prevents unauthorized users from seeing instances list link in side nav
This commit is contained in:
parent
9c2185c68f
commit
2e9956c9fc
@ -186,6 +186,7 @@ function getRouteConfig(userProfile = {}) {
|
||||
if (userProfile?.isOrgAdmin) return routeConfig;
|
||||
deleteRoute('instance_groups');
|
||||
deleteRoute('topology_view');
|
||||
deleteRoute('instances');
|
||||
if (!userProfile?.isNotificationAdmin) deleteRoute('notification_templates');
|
||||
|
||||
return routeConfig;
|
||||
|
||||
@ -127,7 +127,6 @@ describe('getRouteConfig', () => {
|
||||
'/teams',
|
||||
'/credential_types',
|
||||
'/notification_templates',
|
||||
'/instances',
|
||||
'/applications',
|
||||
'/execution_environments',
|
||||
]);
|
||||
@ -151,7 +150,6 @@ describe('getRouteConfig', () => {
|
||||
'/users',
|
||||
'/teams',
|
||||
'/credential_types',
|
||||
'/instances',
|
||||
'/applications',
|
||||
'/execution_environments',
|
||||
]);
|
||||
@ -175,7 +173,6 @@ describe('getRouteConfig', () => {
|
||||
'/users',
|
||||
'/teams',
|
||||
'/credential_types',
|
||||
'/instances',
|
||||
'/applications',
|
||||
'/execution_environments',
|
||||
]);
|
||||
@ -204,7 +201,6 @@ describe('getRouteConfig', () => {
|
||||
'/teams',
|
||||
'/credential_types',
|
||||
'/notification_templates',
|
||||
'/instances',
|
||||
'/applications',
|
||||
'/execution_environments',
|
||||
]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user