mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-28 01:41:14 -06:00
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:
parent
46137fdf89
commit
887f53cd67
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user