if (user.isManager(employee.getDepartment())) {
return true;
}
return false;
} else if (obj instanceof EmployeeProjectRelation) {
EmployeeProjectRelation relation = (EmployeeProjectRelation) obj;
return user.isAllowedToEdit(relation.getRight());
} else if (obj instanceof EmployeeWorkPackageRelation) {
EmployeeWorkPackageRelation relation = (EmployeeWorkPackageRelation) obj;
return user.isAllowedToEdit(relation.getRight());
} else if (obj instanceof WorkPackageDependsRelation) {
WorkPackageDependsRelation relation = (WorkPackageDependsRelation) obj;
return user.isAllowedToEdit(relation.getLeft()) && user.isAllowedToEdit(relation.getRight());
} else if (obj instanceof FTOverride) {
FTOverride ftOverride = (FTOverride) obj;
return user.isCompanyManager();
}