From 567d623446d7e98393fb542c88d6d3b18b05cf6f Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 13 Feb 2016 12:39:49 -0500 Subject: Add setting option to disable private projects --- app/Api/Me.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/Api/Me.php') diff --git a/app/Api/Me.php b/app/Api/Me.php index df8ec070..ccc809ed 100644 --- a/app/Api/Me.php +++ b/app/Api/Me.php @@ -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, -- cgit v1.2.3