Fixing typo in UserInfo struct

This commit is contained in:
stephb9959
2022-01-05 22:16:25 -08:00
parent 08a50db13c
commit f8c6dad974
18 changed files with 93 additions and 72 deletions

View File

@@ -27,7 +27,7 @@ namespace OpenWifi {
};
void RESTAPI_avatar_handler::DoPost() {
std::string Id = UserInfo_.userinfo.Id;
std::string Id = UserInfo_.userinfo.id;
SecurityObjects::UserInfo UInfo;
std::stringstream SS;
@@ -66,7 +66,7 @@ namespace OpenWifi {
void RESTAPI_avatar_handler::DoDelete() {
std::string Id = GetBinding(RESTAPI::Protocol::ID, "");
if(UserInfo_.userinfo.userRole!=SecurityObjects::ROOT && Id!=UserInfo_.userinfo.Id) {
if(UserInfo_.userinfo.userRole!=SecurityObjects::ROOT && Id!=UserInfo_.userinfo.id) {
return UnAuthorized(RESTAPI::Errors::InsufficientAccessRights, ACCESS_DENIED);
}