fix(Core/Chat): Fix lower security check for GM commands. (#21382)
This commit is contained in:
@@ -82,7 +82,7 @@ bool ChatHandler::HasLowerSecurityAccount(WorldSession* target, uint32 target_ac
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
// ignore only for non-players for non strong checks (when allow apply command at least to same sec level)
|
// ignore only for non-players for non strong checks (when allow apply command at least to same sec level)
|
||||||
if (!AccountMgr::IsPlayerAccount(m_session->GetSecurity()) && !strong && !sWorld->getBoolConfig(CONFIG_GM_LOWER_SECURITY))
|
if (!AccountMgr::IsPlayerAccount(m_session->GetSecurity()) && !strong && sWorld->getBoolConfig(CONFIG_GM_LOWER_SECURITY))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (target)
|
if (target)
|
||||||
|
|||||||
Reference in New Issue
Block a user