public function getAllowedVacancyList() { $accessFlowStateMachineService = new AccessFlowStateMachineService(); $allowedVacancyIdList = $accessFlowStateMachineService->getAllowedVacancyList(AdminUserRoleDecorator::ADMIN_USER, null); $existingIdList = $this->user->getAllowedVacancyList(); if (is_null($allowedVacancyIdList)) { return $existingIdList; } else { $allowedVacancyIdList = array_unique(array_merge($allowedVacancyIdList, $existingIdList)); return $allowedVacancyIdList; } }
public function getAllowedVacancyList() { $accessFlowStateMachineService = new AccessFlowStateMachineService(); $allowedVacancyIdList = $accessFlowStateMachineService->getAllowedVacancyList(InterviewerUserRoleDecorator::INTERVIEWER, $this->getEmployeeNumber()); $existingIdList = $this->user->getAllowedVacancyList(); if (is_null($allowedVacancyIdList)) { return $existingIdList; } else { $allowedVacancyIdList = array_unique(array_merge($allowedVacancyIdList, $existingIdList)); return $allowedVacancyIdList; } }