fix: use correct property to determine license requirements

closes #869anf4gk
This commit is contained in:
Björn Fromme
2025-09-30 18:40:35 +02:00
parent e23a5097ef
commit fd3e9db5a3
+1 -1
View File
@@ -168,7 +168,7 @@ class JobProfile implements BlameableEntityInterface, TimestampableEntityInterfa
{
// Check licenses
$qualifiedByLicenses = true;
if (0 < $this->requiredTrainings->count()) {
if (0 < count($this->requiredLicenses)) {
$teamerLicenseTypes = $teamer->getLicenses()->map(function (License $license) {
return $license->getType();
})->toArray();