Skip to content

Commit

Permalink
Add EX-03, EX-04 to scopeAvailableInSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
mnigh committed Dec 23, 2024
1 parent 6127e74 commit b31ec88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/app/Models/Classification.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected function displayName(): Attribute

/**
* Used to limit the results for the search page input
* to IT up to level 5 and PM up to level 6 and CR level 4
* to IT up to level 5; PM up to level 6; CR level 4; EX level 3, EX level 4.
*
* TODO: Update in #9483 to derive from new column
*/
Expand All @@ -75,6 +75,10 @@ public static function scopeAvailableInSearch(Builder $query, bool $availableInS
$query->where('group', 'PM')->where('level', '<=', 6);
})->orWhere(function ($query) {
$query->where('group', 'CR')->where('level', '=', 4);
})->orWhere(function ($query) {
$query->where('group', 'EX')->where('level', '=', 3);
})->orWhere(function ($query) {
$query->where('group', 'EX')->where('level', '=', 4);
});
}
}

0 comments on commit b31ec88

Please sign in to comment.