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

This commit is contained in:
mabashian 2018-12-10 11:12:09 -05:00
parent 42562e86e4
commit ae7361f82d

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