mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 23:46:05 -03:30
Fixes bug where admin/member roles weren't showing up when adding user to org
This commit is contained in:
@@ -25,7 +25,7 @@ export default ['$rootScope', '$scope', 'GetBasePath', 'Rest', '$q', 'Wait', 'Pr
|
|||||||
// the object permissions are being added to
|
// the object permissions are being added to
|
||||||
scope.object = scope.resourceData.data;
|
scope.object = scope.resourceData.data;
|
||||||
// array for all possible roles for the object
|
// 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 objectType = _.get(scope, ['object', 'type']);
|
||||||
const teamRoles = _.get(scope, ['object', 'summary_fields', 'object_roles'], {});
|
const teamRoles = _.get(scope, ['object', 'summary_fields', 'object_roles'], {});
|
||||||
|
|||||||
Reference in New Issue
Block a user