Merge pull request #2898 from mabashian/2851-perms

Fixes bug where admin/member roles weren't showing up when adding user to org

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot] 2018-12-10 16:51:03 +00:00 committed by GitHub
commit 2758a38485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'], {});