Add setting option to disable private projects

This commit is contained in:
Frederic Guillot
2016-02-13 12:39:49 -05:00
parent 5d20b93b3a
commit 567d623446
31 changed files with 91 additions and 3 deletions

View File

@@ -38,6 +38,10 @@ class Me extends Base
public function createMyPrivateProject($name, $description = null)
{
if ($this->config->get('disable_private_project', 0) == 1) {
return false;
}
$values = array(
'name' => $name,
'description' => $description,