diff options
Diffstat (limited to 'app/Template/project_edit')
-rw-r--r-- | app/Template/project_edit/show.php | 8 |
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"> |