diff --git a/src/main/html/webapp/components/admin/app/list/list.js b/src/main/html/webapp/components/admin/app/list/list.js index 10d1de76..d3ea3ffe 100644 --- a/src/main/html/webapp/components/admin/app/list/list.js +++ b/src/main/html/webapp/components/admin/app/list/list.js @@ -192,48 +192,57 @@ export default Control.extend({ }, - '.edit-permission-btn click': function (el, ev) { + '.edit-permission-btn click': function(el, ev) { var card = $(el).closest('.card'); var application = domData.get.call(card[0], 'application'); Group.findAll({}, - function (groups) { - var selection = new canMap(); - selection.attr('group', application.attr('permission')); - selection.attr('name', ''); - - bootbox.confirm(templatePermission({ - selection: selection, - application: application, - groups: groups - }), - function (result) { + function(groups) { + + var roles = application.attr('permission').split(','); + + var options = ''; + groups.forEach(function(group, index) { + if ($.inArray(group.attr('name'), roles) >= 0) { + options = options + '