Hiding and clearing department prototype code (#28114)

This commit is contained in:
Tornado Tech
2024-06-02 09:49:34 +10:00
committed by GitHub
parent ad1fc0cdba
commit 07dfefc4a2
4 changed files with 49 additions and 28 deletions

View File

@@ -43,7 +43,7 @@ public sealed partial class BuyerDepartmentCondition : ListingCondition
{
foreach (var department in prototypeManager.EnumeratePrototypes<DepartmentPrototype>())
{
if (department.Roles.Contains(job.Prototype) && Blacklist.Contains(department.ID))
if (department.Roles.Contains(job.Prototype.Value) && Blacklist.Contains(department.ID))
return false;
}
}
@@ -56,7 +56,7 @@ public sealed partial class BuyerDepartmentCondition : ListingCondition
{
foreach (var department in prototypeManager.EnumeratePrototypes<DepartmentPrototype>())
{
if (department.Roles.Contains(job.Prototype) && Whitelist.Contains(department.ID))
if (department.Roles.Contains(job.Prototype.Value) && Whitelist.Contains(department.ID))
{
found = true;
break;