From ae7361f82dc7c8f96d2ef5d7ed0b71fd5aed60e3 Mon Sep 17 00:00:00 2001 From: mabashian Date: Mon, 10 Dec 2018 11:12:09 -0500 Subject: [PATCH] Fixes bug where admin/member roles weren't showing up when adding user to org --- .../src/access/add-rbac-resource/rbac-resource.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/access/add-rbac-resource/rbac-resource.controller.js b/awx/ui/client/src/access/add-rbac-resource/rbac-resource.controller.js index 5349ecd216..d79b22bda4 100644 --- a/awx/ui/client/src/access/add-rbac-resource/rbac-resource.controller.js +++ b/awx/ui/client/src/access/add-rbac-resource/rbac-resource.controller.js @@ -25,7 +25,7 @@ export default ['$rootScope', '$scope', 'GetBasePath', 'Rest', '$q', 'Wait', 'Pr // the object permissions are being added to scope.object = scope.resourceData.data; // array for all possible roles for the object - scope.roles = scope.object.summary_fields.object_roles; + scope.roles = angular.copy(scope.object.summary_fields.object_roles); const objectType = _.get(scope, ['object', 'type']); const teamRoles = _.get(scope, ['object', 'summary_fields', 'object_roles'], {});