Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
This commit is contained in:
commit
fca4a5448a
166 files changed
+3523
-3008
No files matched your search
@@ -118,6 +118,7 @@ WorldSession::WorldSession(uint32 id, WorldSocket* sock, AccountTypes sec, uint8
|
||||
m_sessionDbcLocale(sWorld->GetAvailableDbcLocale(locale)),
|
||||
m_sessionDbLocaleIndex(locale),
|
||||
m_latency(0),
|
||||
m_clientTimeDelay(0),
|
||||
m_TutorialsChanged(false),
|
||||
_filterAddonMessages(false),
|
||||
recruiterId(recruiter),
|
||||
@@ -1128,15 +1129,16 @@ void WorldSession::LoadPermissions()
|
||||
uint32 id = GetAccountId();
|
||||
std::string name;
|
||||
AccountMgr::GetName(id, name);
|
||||
uint8 secLevel = GetSecurity();
|
||||
|
||||
_RBACData = new RBACData(id, name, realmID);
|
||||
_RBACData = new rbac::RBACData(id, name, realmID, secLevel);
|
||||
_RBACData->LoadFromDB();
|
||||
|
||||
TC_LOG_DEBUG(LOG_FILTER_RBAC, "WorldSession::LoadPermissions [AccountId: %u, Name: %s, realmId: %d]",
|
||||
id, name.c_str(), realmID);
|
||||
TC_LOG_DEBUG(LOG_FILTER_RBAC, "WorldSession::LoadPermissions [AccountId: %u, Name: %s, realmId: %d, secLevel: %u]",
|
||||
id, name.c_str(), realmID, secLevel);
|
||||
}
|
||||
|
||||
RBACData* WorldSession::GetRBACData()
|
||||
rbac::RBACData* WorldSession::GetRBACData()
|
||||
{
|
||||
return _RBACData;
|
||||
}
|
||||
@@ -1155,7 +1157,7 @@ bool WorldSession::HasPermission(uint32 permission)
|
||||
|
||||
void WorldSession::InvalidateRBACData()
|
||||
{
|
||||
TC_LOG_DEBUG(LOG_FILTER_RBAC, "WorldSession::InvalidateRBACData [AccountId: %u, Name: %s, realmId: %d]",
|
||||
TC_LOG_DEBUG(LOG_FILTER_RBAC, "WorldSession::Invalidaterbac::RBACData [AccountId: %u, Name: %s, realmId: %d]",
|
||||
_RBACData->GetId(), _RBACData->GetName().c_str(), realmID);
|
||||
delete _RBACData;
|
||||
_RBACData = NULL;
|
||||
|
||||
Reference in new issue
Block a user