From 555e2fde08d3fd45e818071cf3bfd9d67975fd05 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Thu, 22 Oct 2020 20:01:39 -0700 Subject: [PATCH] Fixed MPS policy removal --- amtmanager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amtmanager.js b/amtmanager.js index d2a11e2d..8407b3eb 100644 --- a/amtmanager.js +++ b/amtmanager.js @@ -1163,7 +1163,7 @@ module.exports.CreateAmtManager = function (parent) { } // Remove all MPS policies that are not ours - if ((dev.cira.xxPolicies['User Initiated'] != null) && (dev.cira.xxPolicies['User Initiated'].length > 0)) { dev.consoleMsg("Removing CIRA user trigger."); dev.amtstack.Delete('AMT_RemoteAccessPolicyRule', { 'PolicyRuleName': 'User Initiated' }, function (stack, name, responses, status) { }); } + if ((dev.cira.xxPolicies['User'] != null) && (dev.cira.xxPolicies['User'].length > 0)) { dev.consoleMsg("Removing CIRA user trigger."); dev.amtstack.Delete('AMT_RemoteAccessPolicyRule', { 'PolicyRuleName': 'User Initiated' }, function (stack, name, responses, status) { }); } if ((dev.cira.xxPolicies['Alert'] != null) && (dev.cira.xxPolicies['Alert'].length > 0)) { dev.consoleMsg("Removing CIRA alert trigger."); dev.amtstack.Delete('AMT_RemoteAccessPolicyRule', { 'PolicyRuleName': 'Alert' }, function (stack, name, responses, status) { }); } if ((dev.cira.xxPolicies['Periodic'] != null) && (dev.cira.xxPolicies['Periodic'].length > 0) && (dev.cira.mpsPolicy == false)) { dev.consoleMsg("Removing CIRA periodic trigger."); dev.amtstack.Delete('AMT_RemoteAccessPolicyRule', { 'PolicyRuleName': 'Periodic' }, function (stack, name, responses, status) { }); }