Skip to content

Commit

Permalink
fix blanket whitelist not working in client
Browse files Browse the repository at this point in the history
  • Loading branch information
deltanedas committed Aug 30, 2024
1 parent 8f0791a commit 516319b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ public bool CheckWhitelist(JobPrototype job, [NotNullWhen(false)] out FormattedM
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"));
Expand Down

0 comments on commit 516319b

Please sign in to comment.