mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 05:59:28 -02:30
Don't filter out read role.
This commit is contained in:
@@ -25,9 +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 = _.omit(scope.object.summary_fields.object_roles, (key) => {
|
scope.roles = scope.object.summary_fields.object_roles;
|
||||||
return key.name === 'Read';
|
|
||||||
});
|
|
||||||
|
|
||||||
// TODO: get working with api
|
// TODO: get working with api
|
||||||
// array w roles and descriptions for key
|
// array w roles and descriptions for key
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
<div class="AddPermissions-keyPane"
|
<div class="AddPermissions-keyPane"
|
||||||
ng-show="showKeyPane">
|
ng-show="showKeyPane">
|
||||||
<div class="AddPermissions-keyRow"
|
<div class="AddPermissions-keyRow"
|
||||||
ng-repeat="key in roleKey | filter:{name: '!Read'}">
|
ng-repeat="key in roleKey">
|
||||||
<div class="AddPermissions-keyName">
|
<div class="AddPermissions-keyName">
|
||||||
{{ key.name }}
|
{{ key.name }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ function(scope, $state, i18n, CreateSelect2, Rest, $q, Wait, ProcessErrors) {
|
|||||||
// aggregate name/descriptions for each available role, based on resource type
|
// aggregate name/descriptions for each available role, based on resource type
|
||||||
// reasoning:
|
// reasoning:
|
||||||
function aggregateKey(item, type){
|
function aggregateKey(item, type){
|
||||||
_.merge(scope.keys[type], _.omit(item.summary_fields.object_roles, 'read_role'));
|
_.merge(scope.keys[type], item.summary_fields.object_roles);
|
||||||
}
|
}
|
||||||
|
|
||||||
scope.closeModal = function() {
|
scope.closeModal = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user