Fix error in *controlpanel when setting bindhost of another user.

Thanks to Kult for reporting this.
This commit is contained in:
Alexey Sokolov
2016-03-04 22:24:46 +00:00
parent e5ff36eb8e
commit 0ff90ea451
+1 -1
View File
@@ -267,7 +267,7 @@ class CAdminMod : public CModule {
}
else if (sVar == "bindhost") {
if(!pUser->DenySetBindHost() || GetUser()->IsAdmin()) {
if (sValue.Equals(GetUser()->GetBindHost())) {
if (sValue.Equals(pUser->GetBindHost())) {
PutModule("This bind host is already set!");
return;
}