mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 22:48:02 -03:30
filtering out READ roles from the RBAC modal
it was accidentally added in the 3.1 smart search snafoo
This commit is contained in:
parent
c13242305f
commit
d6f70a22f3
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user