stephb9959
2023-07-03 08:26:09 -07:00
parent 776ecabf81
commit dd7d5e8ab6
2 changed files with 4 additions and 2 deletions

2
build
View File

@@ -1 +1 @@
21
24

View File

@@ -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);