* @return true dersom liste inneholder lederstatus
*/
private boolean initDeviationStatusList(JobFunction jobFunction) {
deviationStatusList.clear();
boolean isManager = false;
DeviationStatusManager deviationStatusManager = (DeviationStatusManager) ModelUtil
.getBean("deviationStatusManager");
if (jobFunction != null && jobFunction.getManager() != null
&& jobFunction.getManager().equals(login.getApplicationUser())
|| userType.isAdministrator()) {
deviationStatusList.addAll(deviationStatusManager
.findAllForDeviation());
deviationStatusList.add(0, null);
isManager = true;
} else {
deviationStatusList.addAll(deviationStatusManager
.findAllNotForManagerForDeviation());
deviationStatusList.add(0, null);
}
return isManager;
}