From dd7d5e8ab66c001967a40fe6a013b7f760531ffc Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Mon, 3 Jul 2023 08:26:09 -0700 Subject: [PATCH] https://telecominfraproject.atlassian.net/browse/WIFI-12525 Signed-off-by: stephb9959 --- build | 2 +- src/RESTAPI/RESTAPI_sms_handler.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build b/build index b5045cc..cabf43b 100644 --- a/build +++ b/build @@ -1 +1 @@ -21 \ No newline at end of file +24 \ No newline at end of file diff --git a/src/RESTAPI/RESTAPI_sms_handler.cpp b/src/RESTAPI/RESTAPI_sms_handler.cpp index e4a41f9..741c18f 100644 --- a/src/RESTAPI/RESTAPI_sms_handler.cpp +++ b/src/RESTAPI/RESTAPI_sms_handler.cpp @@ -34,7 +34,9 @@ namespace OpenWifi { return BadRequest(RESTAPI::Errors::SMSCouldNotValidate); } - if (UserInfo_.userinfo.userRole != SecurityObjects::ROOT && + if(Internal_) { + poco_information(Logger(),fmt::format("Internal SMS request: TID={}", TransactionId_)); + } else if (UserInfo_.userinfo.userRole != SecurityObjects::ROOT && UserInfo_.userinfo.userRole != SecurityObjects::PARTNER && UserInfo_.userinfo.userRole != SecurityObjects::ADMIN) { return UnAuthorized(RESTAPI::Errors::ACCESS_DENIED);