-if (!ucr->address.res_empty())
- if (!u->GetProperty().address.Set(ucr->address.const_data(), currAdmin, login, store))
+if (check && alwaysOnline && !onlyOneIP)
+ {
+ printfd(__FILE__, "Requested change leads to a forbidden state: AlwaysOnline with multiple IP's\n");
+ GetStgLogger()("%s Requested change leads to a forbidden state: AlwaysOnline with multiple IP's", currAdmin->GetLogStr().c_str());
+ return -1;
+ }
+
+if (!ucr->ips.res_empty())
+ if (!u->GetProperty().ips.Set(ucr->ips.const_data(), currAdmin, login, store))