mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
				synced 2025-10-31 02:37:56 +00:00 
			
		
		
		
	Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
		
							
								
								
									
										29
									
								
								src/RESTAPI/RESTAPI_systemSecret_handler.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								src/RESTAPI/RESTAPI_systemSecret_handler.cpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| // | ||||
| // Created by stephane bourque on 2023-01-25. | ||||
| // | ||||
|  | ||||
| #include "RESTAPI_systemSecret_handler.h" | ||||
|  | ||||
| namespace OpenWifi { | ||||
|  | ||||
|     void RESTAPI_systemSecret_handler::DoGet() { | ||||
|         if(!Internal_ && UserInfo_.userinfo.userRole!=SecurityObjects::ROOT) { | ||||
|             return UnAuthorized(RESTAPI::Errors::ACCESS_DENIED); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     void RESTAPI_systemSecret_handler::DoDelete() { | ||||
|         if(UserInfo_.userinfo.userRole!=SecurityObjects::ROOT) { | ||||
|             return UnAuthorized(RESTAPI::Errors::ACCESS_DENIED); | ||||
|         } | ||||
|  | ||||
|     } | ||||
|  | ||||
|     void RESTAPI_systemSecret_handler::DoPut() { | ||||
|         if(UserInfo_.userinfo.userRole!=SecurityObjects::ROOT) { | ||||
|             return UnAuthorized(RESTAPI::Errors::ACCESS_DENIED); | ||||
|         } | ||||
|  | ||||
|     } | ||||
|  | ||||
| } // OpenWifi | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959