mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
				synced 2025-10-30 02:12:32 +00:00 
			
		
		
		
	Adding additional security for SMS: only root, partner, admin are allowed to send SMS.
This commit is contained in:
		| @@ -33,6 +33,12 @@ namespace OpenWifi { | ||||
|             return BadRequest("Code and number could not be validated"); | ||||
|         } | ||||
|  | ||||
|         if( UserInfo_.userinfo.userRole!=SecurityObjects::ROOT && | ||||
|             UserInfo_.userinfo.userRole!=SecurityObjects::PARTNER && | ||||
|             UserInfo_.userinfo.userRole!=SecurityObjects::ADMIN) { | ||||
|             return UnAuthorized(RESTAPI::Errors::InsufficientAccessRights,ACCESS_DENIED); | ||||
|         } | ||||
|  | ||||
|         if (Obj->has("to") && | ||||
|             Obj->has("text")) { | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959