summaryrefslogtreecommitdiff
path: root/app/Template/project/sidebar.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/project/sidebar.php')
-rw-r--r--app/Template/project/sidebar.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Template/project/sidebar.php b/app/Template/project/sidebar.php
index 376a1427..ef591d2e 100644
--- a/app/Template/project/sidebar.php
+++ b/app/Template/project/sidebar.php
@@ -18,11 +18,13 @@
<li>
<?= Helper\a(t('Category management'), 'category', 'index', array('project_id' => $project['id'])) ?>
</li>
- <?php if (Helper\is_admin()): ?>
+ <?php endif ?>
+ <?php if ((Helper\is_admin() || $is_owner) && $project['is_private'] == 0): ?>
<li>
<?= Helper\a(t('User management'), 'project', 'users', array('project_id' => $project['id'])) ?>
</li>
<?php endif ?>
+ <?php if (Helper\is_admin() || $project['is_private']): ?>
<li>
<?= Helper\a(t('Automatic actions'), 'action', 'index', array('project_id' => $project['id'])) ?>
</li>