stephb9959
2023-01-25 16:15:28 -08:00
parent acdb617d35
commit ce1818c93c
10 changed files with 196 additions and 13 deletions

View 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