From f413ab20dd99324f2728d874059117154254ea13 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 9 May 2018 11:46:19 -0700 Subject: Hide private projects checkbox if the feature is disabled --- app/Template/project_edit/show.php | 8 +++++--- 1 file 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 @@
- user->hasProjectAccess('ProjectCreationController', 'create', $project['id'])): ?> - form->checkbox('is_private', t('Private project'), 1, $project['is_private'] == 1) ?> -

+ app->config('disable_private_project') != 1): ?> + user->hasProjectAccess('ProjectCreationController', 'create', $project['id'])): ?> + form->checkbox('is_private', t('Private project'), 1, $project['is_private'] == 1) ?> +

+
-- cgit v1.2.3