Core/Account: Fix security level not updating in RBAC

This commit is contained in:
Roc13x authored and Ovah committed 2020-08-24 23:49:47 +02:00
1 parent 31a04a1de1
commit e80375a7a9
1 file changed
+1 -1
+1 -1
View File
@@ -514,7 +514,7 @@ void AccountMgr::LoadRBAC()
void AccountMgr::UpdateAccountAccess(rbac::RBACData* rbac, uint32 accountId, uint8 securityLevel, int32 realmId)
{
if (rbac && securityLevel == rbac->GetSecurityLevel())
if (rbac && securityLevel != rbac->GetSecurityLevel())
rbac->SetSecurityLevel(securityLevel);
LoginDatabaseTransaction trans = LoginDatabase.BeginTransaction();