fix blanket whitelist not working in client (#1708)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas 2024-08-30 03:42:52 +00:00 committed by GitHub
parent 8f0791a852
commit 523e4220c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -144,6 +144,10 @@ public sealed partial class JobRequirementsManager : ISharedPlaytimeManager
if (!_cfg.GetCVar(CCVars.GameRoleWhitelist))
return true;
// DeltaV - blanket whitelist check in client
if (_whitelisted)
return true;
if (job.Whitelisted && !_jobWhitelists.Contains(job.ID))
{
reason = FormattedMessage.FromUnformatted(Loc.GetString("role-not-whitelisted"));