Core/RBAC: Add default groups to accounts based on their security level.

- Removed config option RBAC.DefaultGroups

Use the table rbac_security_level_groups to configure the groups to be added to the account at load time.

Note: Those groups are only used at run time, never saved to DB
This commit is contained in:
Spp committed 2013-09-27 13:35:45 +02:00
1 parent cfaea769bc
commit 895a23df11
6 files changed
+42 -79

No files matched your search

+4 -3
View File
@@ -1189,12 +1189,13 @@ void WorldSession::LoadPermissions()
uint32 id = GetAccountId();
std::string name;
AccountMgr::GetName(id, name);
uint8 secLevel = GetSecurity();
_RBACData = new rbac::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);
}
rbac::RBACData* WorldSession::GetRBACData()