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

Issue #3362311: Make it possible to set max private repos per team

parent c0293691
No related branches found
No related tags found
1 merge request!17Issue #3362311: Make it possible to set max private repos per team
......@@ -27,6 +27,16 @@ class TeamNode extends Node {
return (int) $this->get(self::PROJECT_LIMIT_FIELD)->first()->getString();
}
/**
* Setter for max private repos.
*/
public function setMaxPrivateRepos($number) {
if (!$this->hasField(self::PROJECT_LIMIT_FIELD)) {
return;
}
$this->set(self::PROJECT_LIMIT_FIELD, $number);
}
/**
* Setter for the plan.
*/
......
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