mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Webadmin: Fix Edit Network when using DenySetNetwork (#1942)
This commit is contained in:
@@ -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