gitlab-org--gitlab-foss/app/assets/javascripts/work_items_hierarchy/hierarchy_util.js

11 lines
254 B
JavaScript

import { LICENSE_PLAN } from './constants';
export function inferLicensePlan({ hasSubEpics, hasEpics }) {
if (hasSubEpics) {
return LICENSE_PLAN.ULTIMATE;
} else if (hasEpics) {
return LICENSE_PLAN.PREMIUM;
}
return LICENSE_PLAN.FREE;
}