From e98ecac9090df3490c5aca3d2f33068ebbada19e Mon Sep 17 00:00:00 2001 From: ayushaga14 Date: Mon, 16 Dec 2024 11:28:39 +0530 Subject: [PATCH] add account check --- .../src/main/java/com/akto/action/DbAction.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/database-abstractor/src/main/java/com/akto/action/DbAction.java b/apps/database-abstractor/src/main/java/com/akto/action/DbAction.java index 5803e720d9..061b22bdee 100644 --- a/apps/database-abstractor/src/main/java/com/akto/action/DbAction.java +++ b/apps/database-abstractor/src/main/java/com/akto/action/DbAction.java @@ -1228,6 +1228,10 @@ public String createCollectionForHost() { public String insertRuntimeLog() { try { + int accId = Context.accountId.get(); + if (accId == 1733164172) { + return Action.SUCCESS.toUpperCase(); + } Log dbLog = new Log(log.getString("log"), log.getString("key"), log.getInt("timestamp")); DbLayer.insertRuntimeLog(dbLog); } catch (Exception e) { @@ -1239,6 +1243,10 @@ public String insertRuntimeLog() { public String insertAnalyserLog() { try { + int accId = Context.accountId.get(); + if (accId == 1733164172) { + return Action.SUCCESS.toUpperCase(); + } Log dbLog = new Log(log.getString("log"), log.getString("key"), log.getInt("timestamp")); DbLayer.insertAnalyserLog(dbLog); } catch (Exception e) { @@ -1921,6 +1929,10 @@ public String modifyHybridTestingSetting() { public String insertTestingLog() { try { + int accId = Context.accountId.get(); + if (accId == 1733164172) { + return Action.SUCCESS.toUpperCase(); + } Log dbLog = new Log(log.getString("log"), log.getString("key"), log.getInt("timestamp")); // Skip writing cyborg call logs.