WIP Impelement more stuff

This commit is contained in:
Björn Fromme committed 2023-10-04 15:10:16 +02:00
1 parent dec8feedf2
commit cc1ab396af
35 files changed
+928 -177

No files matched your search

@@ -35,11 +35,11 @@ class SkillsController extends AbstractController
foreach ($jobProfiles as $profile) {
$selectableJobProfiles[$profile->getId()] = true;
if (null !== $profile->getRequiredTraining() && false === $teamer->hasTraining($profile->getRequiredTraining())) {
if (null !== $profile->getRequiredTraining() && null === $teamer->getTrainingAttendance($profile->getRequiredTraining())) {
$selectableJobProfiles[$profile->getId()] = false;
}
foreach ($profile->getRequiredLicenses() as $license) {
if (false === $teamer->hasLicenseOfType($license)) {
if (null === $teamer->getLicenseOfType($license)) {
$selectableJobProfiles[$profile->getId()] = false;
}
}