filtering out READ roles from the RBAC modal

it was accidentally added in the 3.1 smart search snafoo
This commit is contained in:
jaredevantabor 2017-03-08 18:55:02 -08:00
parent c13242305f
commit d6f70a22f3

View File

@ -18,7 +18,9 @@ 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 = _.omit(scope.object.summary_fields.object_roles, (key) => {
return key.name === 'Read';
});
// TODO: get working with api
// array w roles and descriptions for key