diff options
-rw-r--r-- | src/server/scripts/Commands/cs_account.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/scripts/Commands/cs_account.cpp b/src/server/scripts/Commands/cs_account.cpp index cd8d5791d9e..bce351e378d 100644 --- a/src/server/scripts/Commands/cs_account.cpp +++ b/src/server/scripts/Commands/cs_account.cpp @@ -697,9 +697,10 @@ public: uint32 playerSecurity; if (handler->IsConsole()) - playerSecurity = AccountMgr::GetSecurity(handler->GetSession()->GetAccountId(), realmID); - else playerSecurity = SEC_CONSOLE; + else + playerSecurity = AccountMgr::GetSecurity(handler->GetSession()->GetAccountId(), realmID); + // can set security level only for target with less security and to less security that we have // This also restricts setting handler's own security. |