mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
RA.MinLevel to Ra.MinLevel (#18387)
Solves https://github.com/TrinityCore/TrinityCore/issues/18386
(cherry picked from commit 023eec874a)
This commit is contained in:
@@ -137,7 +137,7 @@ bool RASession::CheckAccessLevel(const std::string& user)
|
||||
|
||||
Field* fields = result->Fetch();
|
||||
|
||||
if (fields[1].GetUInt8() < sConfigMgr->GetIntDefault("RA.MinLevel", 3))
|
||||
if (fields[1].GetUInt8() < sConfigMgr->GetIntDefault("Ra.MinLevel", SEC_ADMINISTRATOR))
|
||||
{
|
||||
TC_LOG_INFO("commands.ra", "User %s has no privilege to login", user.c_str());
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user