Webadmin: Fix Edit Network when using DenySetNetwork (#1942)
This commit is contained in:
1 parent
9ab81d1dad
commit
a206d1a3bb
2 files changed
+5
-4
No files matched your search
@@ -1030,20 +1030,20 @@ class CWebAdminMod : public CModule {
|
||||
if (spSession->IsAdmin() ||
|
||||
!spSession->GetUser()->DenySetIdent()) {
|
||||
Tmpl["IdentEdit"] = "true";
|
||||
Tmpl["Ident"] = pNetwork->GetIdent();
|
||||
}
|
||||
Tmpl["Ident"] = pNetwork->GetIdent();
|
||||
|
||||
if (spSession->IsAdmin() ||
|
||||
!spSession->GetUser()->DenySetRealName()) {
|
||||
Tmpl["RealNameEdit"] = "true";
|
||||
Tmpl["RealName"] = pNetwork->GetRealName();
|
||||
}
|
||||
Tmpl["RealName"] = pNetwork->GetRealName();
|
||||
|
||||
if (spSession->IsAdmin() ||
|
||||
!spSession->GetUser()->DenySetQuitMsg()) {
|
||||
Tmpl["QuitMsgEdit"] = "true";
|
||||
Tmpl["QuitMsg"] = pNetwork->GetQuitMsg();
|
||||
}
|
||||
Tmpl["QuitMsg"] = pNetwork->GetQuitMsg();
|
||||
|
||||
Tmpl["NetworkEdit"] =
|
||||
spSession->IsAdmin() || !spSession->GetUser()->DenySetNetwork()
|
||||
|
||||
Reference in new issue
Block a user