summaryrefslogtreecommitdiff
path: root/app/Api/Me.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-13 12:39:49 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-13 12:39:49 -0500
commit567d623446d7e98393fb542c88d6d3b18b05cf6f (patch)
tree5371d19e82be3f11bc5cd8bf931d3425ef90a435 /app/Api/Me.php
parent5d20b93b3a4a9321c7f1126e005b1dd8cfae7324 (diff)
Add setting option to disable private projects
Diffstat (limited to 'app/Api/Me.php')
-rw-r--r--app/Api/Me.php4
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,