mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-11-01 11:17:51 +00:00
Allow SUBSCRIBER to delete herself.
This commit is contained in:
@@ -38,11 +38,14 @@ namespace OpenWifi {
|
||||
}
|
||||
|
||||
void RESTAPI_subuser_handler::DoDelete() {
|
||||
std::cout << __LINE__ << std::endl;
|
||||
std::string Id = GetBinding("id", "");
|
||||
std::cout << __LINE__ << std::endl;
|
||||
if(Id.empty()) {
|
||||
return BadRequest(RESTAPI::Errors::MissingUserID);
|
||||
}
|
||||
|
||||
std::cout << __LINE__ << std::endl;
|
||||
SecurityObjects::UserInfo TargetUser;
|
||||
if(!StorageService()->SubDB().GetUserById(Id,TargetUser)) {
|
||||
return NotFound();
|
||||
|
||||
Reference in New Issue
Block a user