Skip to content
Snippets Groups Projects
Commit 2a762a10 authored by Eirik Morland's avatar Eirik Morland
Browse files

Issue #3364529: Add logic for agency plan

parent 6008fe63
No related branches found
No related tags found
1 merge request!19Issue #3364529: Add logic for agency plan
......@@ -52,6 +52,12 @@ class Plan implements PlanInterface {
case self::TRIAL_PLAN:
return self::TRIAL_PLAN_MAX;
case self::AGENCY_PLAN:
if (!$this->maxRepos) {
$this->maxRepos = 10;
}
return $this->maxRepos;
default:
return self::REGULAR_PLAN_MAX;
}
......
......@@ -67,6 +67,11 @@ class TeamNode extends Node {
case PlanInterface::PREMIUM_PLAN:
return new Plan($plan_value);
case PlanInterface::AGENCY_PLAN:
$plan = new Plan($plan_value);
$plan->setMaxPrivateRepos($this->getMaxPrivateRepos());
return $plan;
default:
return $default;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment