mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-19 14:39:43 -04:00
1eca51b follow-up, nuke command.permission from orbit; it was only duplicating data already stored in the core.
(cherry picked from commit 991dc8e050)
This commit is contained in:
@@ -80,8 +80,7 @@ static ChatSubCommandMap COMMAND_MAP;
|
||||
{
|
||||
Field* fields = result->Fetch();
|
||||
std::string_view const name = fields[0].GetStringView();
|
||||
uint16 const permission = fields[1].GetUInt16();
|
||||
std::string_view const help = fields[2].GetStringView();
|
||||
std::string_view const help = fields[1].GetStringView();
|
||||
|
||||
ChatCommandNode* cmd = nullptr;
|
||||
ChatSubCommandMap* map = &COMMAND_MAP;
|
||||
@@ -104,14 +103,6 @@ static ChatSubCommandMap COMMAND_MAP;
|
||||
if (!cmd)
|
||||
continue;
|
||||
|
||||
if (cmd->_invoker && (cmd->_permission.RequiredPermission != permission))
|
||||
{
|
||||
TC_LOG_WARN("sql.sql", "Table `command` has permission %u for '" STRING_VIEW_FMT "' which does not match the core (%u). Overriding.",
|
||||
permission, STRING_VIEW_FMT_ARG(name), cmd->_permission.RequiredPermission);
|
||||
|
||||
cmd->_permission.RequiredPermission = static_cast<rbac::RBACPermissions>(permission);
|
||||
}
|
||||
|
||||
cmd->_help.assign(help);
|
||||
} while (result->NextRow());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user