summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2018-05-09 11:46:19 -0700
committerFrédéric Guillot <fred@kanboard.net>2018-05-09 11:46:19 -0700
commitf413ab20dd99324f2728d874059117154254ea13 (patch)
tree66fee082253d0e5c378ae0c922d5cd8a218ffa65 /app/Template
parent45e551eb50a32be22faf25696472c1474da6884c (diff)
Hide private projects checkbox if the feature is disabled
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/project_edit/show.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/Template/project_edit/show.php b/app/Template/project_edit/show.php
index 324b2e0a..4e50239b 100644
--- a/app/Template/project_edit/show.php
+++ b/app/Template/project_edit/show.php
@@ -31,9 +31,11 @@
<fieldset>
<legend><?= t('Permissions and ownership') ?></legend>
- <?php if ($this->user->hasProjectAccess('ProjectCreationController', 'create', $project['id'])): ?>
- <?= $this->form->checkbox('is_private', t('Private project'), 1, $project['is_private'] == 1) ?>
- <p class="form-help"><?= t('Private projects do not have users and groups management.') ?></p>
+ <?php if ($this->app->config('disable_private_project') != 1): ?>
+ <?php if ($this->user->hasProjectAccess('ProjectCreationController', 'create', $project['id'])): ?>
+ <?= $this->form->checkbox('is_private', t('Private project'), 1, $project['is_private'] == 1) ?>
+ <p class="form-help"><?= t('Private projects do not have users and groups management.') ?></p>
+ <?php endif ?>
<?php endif ?>
<div class="form-inline">