mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
				synced 2025-11-01 03:07:59 +00:00 
			
		
		
		
	Fixing typo in UserInfo struct
This commit is contained in:
		| @@ -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); | ||||
|         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959