diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-02-13 12:39:49 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-02-13 12:39:49 -0500 |
commit | 567d623446d7e98393fb542c88d6d3b18b05cf6f (patch) | |
tree | 5371d19e82be3f11bc5cd8bf931d3425ef90a435 /app/Api/Me.php | |
parent | 5d20b93b3a4a9321c7f1126e005b1dd8cfae7324 (diff) |
Add setting option to disable private projects
Diffstat (limited to 'app/Api/Me.php')
-rw-r--r-- | app/Api/Me.php | 4 |
1 files changed, 4 insertions, 0 deletions
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, |