Fixed problem disabling HBAC and SUDO rules.

The method names for disabling HBAC and SUDO rules have been fixed.

Ticket #1237.
This commit is contained in:
Endi S. Dewata 2011-05-18 12:38:18 -05:00 committed by Adam Young
parent 46137fdf89
commit 887f53cd67
2 changed files with 2 additions and 2 deletions

View File

@ -465,7 +465,7 @@ IPA.hbacrule_details_facet = function (spec) {
// check enable/disable
if (field.name == 'ipaenabledflag') {
if (values[0] == 'FALSE') enable_operation.command.method = that.entity_name+'_disable';
if (values[0] == 'FALSE') enable_operation.command.method = 'disable';
enable_operation.execute = true;
continue;
}

View File

@ -481,7 +481,7 @@ IPA.sudorule_details_facet = function (spec) {
// check enable/disable
if (field.name == 'ipaenabledflag') {
if (values[0] == 'FALSE') enable_operation.command.method = that.entity_name+'_disable';
if (values[0] == 'FALSE') enable_operation.command.method = 'disable';
enable_operation.execute = true;
continue;
}