mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
fix(Core/MailHandler): Security check (#2889)
This commit is contained in:
@@ -24,8 +24,11 @@ bool WorldSession::CanOpenMailBox(uint64 guid)
|
||||
{
|
||||
if (guid == _player->GetGUID())
|
||||
{
|
||||
sLog->outError("%s attempt open mailbox in cheating way.", _player->GetName().c_str());
|
||||
return false;
|
||||
if (_player->GetSession()->GetSecurity() < SEC_MODERATOR)
|
||||
{
|
||||
sLog->outError("%s attempt open mailbox in cheating way.", _player->GetName().c_str());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (IS_GAMEOBJECT_GUID(guid))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user