CVar to promotehost automatically. (#17643)
This commit is contained in:
committed by
GitHub
parent
1005c02ab2
commit
4c8965ac32
@@ -292,7 +292,11 @@ namespace Content.Server.Administration.Managers
|
||||
|
||||
private async Task<(AdminData dat, int? rankId, bool specialLogin)?> LoadAdminData(IPlayerSession session)
|
||||
{
|
||||
if (IsLocal(session) && _cfg.GetCVar(CCVars.ConsoleLoginLocal) || _promotedPlayers.Contains(session.UserId))
|
||||
var promoteHost = IsLocal(session) && _cfg.GetCVar(CCVars.ConsoleLoginLocal)
|
||||
|| _promotedPlayers.Contains(session.UserId)
|
||||
|| session.Name == _cfg.GetCVar(CCVars.ConsoleLoginHostUser);
|
||||
|
||||
if (promoteHost)
|
||||
{
|
||||
var data = new AdminData
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user