mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
				synced 2025-11-04 12:47:50 +00:00 
			
		
		
		
	Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
		@@ -85,6 +85,10 @@ namespace OpenWifi {
 | 
			
		||||
	void RESTAPI_script_handler::DoPut() {
 | 
			
		||||
		std::string 	UUID = GetBinding("uuid","");
 | 
			
		||||
 | 
			
		||||
		if(UserInfo_.userinfo.userRole!=SecurityObjects::ROOT) {
 | 
			
		||||
			return BadRequest(RESTAPI::Errors::ACCESS_DENIED);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if(UUID.empty()) {
 | 
			
		||||
			return BadRequest(RESTAPI::Errors::MissingOrInvalidParameters);
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user