diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-08-22 15:06:00 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-08-23 22:23:31 +0000 |
commit | ffebf3763917b13b945fb27b8da3d524d833162e (patch) | |
tree | 5413a23cc455a73e9d33a9a9c3a00d931be47b9e /install/ui/hbac.js | |
parent | c4f04dd858a43ccdeb83216b442e44298af25090 (diff) | |
download | freeipa-ffebf3763917b13b945fb27b8da3d524d833162e.tar.gz freeipa-ffebf3763917b13b945fb27b8da3d524d833162e.tar.xz freeipa-ffebf3763917b13b945fb27b8da3d524d833162e.zip |
Removed unnecessary HBAC/sudo rule category modification.
Since the Add/Delete links in the association table are disabled when
the category is set to 'all', it's no longer necessary to check the
category before showing the add/delete dialogs and modify the category
before adding entries. Thus, the IPA.rule_association_table_widget is
no longer needed.
Ticket #1692
Diffstat (limited to 'install/ui/hbac.js')
-rw-r--r-- | install/ui/hbac.js | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/install/ui/hbac.js b/install/ui/hbac.js index 274c52d68..3223e0f31 100644 --- a/install/ui/hbac.js +++ b/install/ui/hbac.js @@ -181,22 +181,20 @@ IPA.hbacrule_details_facet = function(spec) { ] }); - var category = section.add_field(IPA.radio_widget({ + section.add_field(IPA.radio_widget({ name: 'usercategory' })); - section.add_field(IPA.rule_association_table_widget({ + section.add_field(IPA.association_table_widget({ id: that.entity.name+'-memberuser_user', name: 'memberuser_user', - category: category, add_method: 'add_user', remove_method: 'remove_user', add_title: IPA.messages.association.add.member, remove_title: IPA.messages.association.remove.member })); - section.add_field(IPA.rule_association_table_widget({ + section.add_field(IPA.association_table_widget({ id: that.entity.name+'-memberuser_group', name: 'memberuser_group', - category: category, add_method: 'add_user', remove_method: 'remove_user', add_title: IPA.messages.association.add.member, @@ -222,22 +220,20 @@ IPA.hbacrule_details_facet = function(spec) { ] }); - var category = section.add_field(IPA.radio_widget({ + section.add_field(IPA.radio_widget({ name: 'hostcategory' })); - section.add_field(IPA.rule_association_table_widget({ + section.add_field(IPA.association_table_widget({ id: that.entity.name+'-memberhost_host', name: 'memberhost_host', - category: category, add_method: 'add_host', remove_method: 'remove_host', add_title: IPA.messages.association.add.member, remove_title: IPA.messages.association.remove.member })); - section.add_field(IPA.rule_association_table_widget({ + section.add_field(IPA.association_table_widget({ id: that.entity.name+'-memberhost_hostgroup', name: 'memberhost_hostgroup', - category: category, add_method: 'add_host', remove_method: 'remove_host', add_title: IPA.messages.association.add.member, @@ -264,22 +260,20 @@ IPA.hbacrule_details_facet = function(spec) { ] }); - var category = section.add_field(IPA.radio_widget({ + section.add_field(IPA.radio_widget({ name: 'servicecategory' })); - section.add_field(IPA.rule_association_table_widget({ + section.add_field(IPA.association_table_widget({ id: that.entity.name+'-memberservice_hbacsvc', name: 'memberservice_hbacsvc', - category: category, add_method: 'add_service', remove_method: 'remove_service', add_title: IPA.messages.association.add.member, remove_title: IPA.messages.association.remove.member })); - section.add_field(IPA.rule_association_table_widget({ + section.add_field(IPA.association_table_widget({ id: that.entity.name+'-memberservice_hbacsvcgroup', name: 'memberservice_hbacsvcgroup', - category: category, add_method: 'add_service', remove_method: 'remove_service', add_title: IPA.messages.association.add.member, @@ -305,22 +299,20 @@ IPA.hbacrule_details_facet = function(spec) { ] }); - var category = section.add_field(IPA.radio_widget({ + section.add_field(IPA.radio_widget({ name: 'sourcehostcategory' })); - section.add_field(IPA.rule_association_table_widget({ + section.add_field(IPA.association_table_widget({ id: that.entity.name+'-sourcehost_host', name: 'sourcehost_host', - category: category, add_method: 'add_sourcehost', remove_method: 'remove_sourcehost', add_title: IPA.messages.association.add.sourcehost, remove_title: IPA.messages.association.remove.sourcehost })); - section.add_field(IPA.rule_association_table_widget({ + section.add_field(IPA.association_table_widget({ id: that.entity.name+'-sourcehost_hostgroup', name: 'sourcehost_hostgroup', - category: category, add_method: 'add_sourcehost', remove_method: 'remove_sourcehost', add_title: IPA.messages.association.add.sourcehost, |