try {
if (vm.count("uid"))
req.uid = vm["uid"].as<uid_t>();
- if (vm.count("usertype")){
+ if (vm.count("usertype"))
req.utype = user_type_map.at(vm["usertype"].as<std::string>());
- } else
+ else
req.utype = SM_USER_TYPE_NORMAL;
} catch (const std::out_of_range &e) {
po::error er("Invalid user type found.");
if (operation == "a" || operation == "add") {
ret = security_manager_user_add(&req);
operation = "add";
- }
- else if (operation == "r" || operation == "remove") {
+ } else if (operation == "r" || operation == "remove") {
ret = security_manager_user_delete(&req);
operation = "remove";
} else {