mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Merge pull request #10604 from nixocio/ui_update_rbac
Update RBAC sidebar Update RBAC sidebar. Do the following: Expose read-only applications to normal users in the UI Expose read-only credential types to normal users in the UI closes: #10432 closes: #10433 Reviewed-by: Jake McDermott <yo@jakemcdermott.me> Reviewed-by: Sarah Akus <sakus@redhat.com>
This commit is contained in:
commit
f16626c808
@ -171,9 +171,7 @@ function getRouteConfig(userProfile = {}) {
|
||||
return routeConfig;
|
||||
deleteRouteGroup('settings');
|
||||
deleteRoute('management_jobs');
|
||||
deleteRoute('credential_types');
|
||||
if (userProfile?.isOrgAdmin) return routeConfig;
|
||||
deleteRoute('applications');
|
||||
deleteRoute('instance_groups');
|
||||
if (!userProfile?.isNotificationAdmin) deleteRoute('notification_templates');
|
||||
|
||||
|
||||
@ -90,6 +90,7 @@ describe('getRouteConfig', () => {
|
||||
'/organizations',
|
||||
'/users',
|
||||
'/teams',
|
||||
'/credential_types',
|
||||
'/notification_templates',
|
||||
'/instance_groups',
|
||||
'/applications',
|
||||
@ -117,7 +118,9 @@ describe('getRouteConfig', () => {
|
||||
'/organizations',
|
||||
'/users',
|
||||
'/teams',
|
||||
'/credential_types',
|
||||
'/notification_templates',
|
||||
'/applications',
|
||||
'/execution_environments',
|
||||
]);
|
||||
});
|
||||
@ -139,6 +142,8 @@ describe('getRouteConfig', () => {
|
||||
'/organizations',
|
||||
'/users',
|
||||
'/teams',
|
||||
'/credential_types',
|
||||
'/applications',
|
||||
'/execution_environments',
|
||||
]);
|
||||
});
|
||||
@ -160,6 +165,8 @@ describe('getRouteConfig', () => {
|
||||
'/organizations',
|
||||
'/users',
|
||||
'/teams',
|
||||
'/credential_types',
|
||||
'/applications',
|
||||
'/execution_environments',
|
||||
]);
|
||||
});
|
||||
@ -185,7 +192,9 @@ describe('getRouteConfig', () => {
|
||||
'/organizations',
|
||||
'/users',
|
||||
'/teams',
|
||||
'/credential_types',
|
||||
'/notification_templates',
|
||||
'/applications',
|
||||
'/execution_environments',
|
||||
]);
|
||||
});
|
||||
@ -211,6 +220,7 @@ describe('getRouteConfig', () => {
|
||||
'/organizations',
|
||||
'/users',
|
||||
'/teams',
|
||||
'/credential_types',
|
||||
'/notification_templates',
|
||||
'/instance_groups',
|
||||
'/applications',
|
||||
@ -239,6 +249,7 @@ describe('getRouteConfig', () => {
|
||||
'/organizations',
|
||||
'/users',
|
||||
'/teams',
|
||||
'/credential_types',
|
||||
'/notification_templates',
|
||||
'/instance_groups',
|
||||
'/applications',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user