summaryrefslogtreecommitdiff
path: root/app/Template/project/sidebar.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-11 20:51:40 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-11 20:51:40 -0500
commit76019d76287f174cb6bf81fe052dc5c5c53be46c (patch)
tree51398e06b6a96b9b91e4a90ce7871d44f93a4a70 /app/Template/project/sidebar.php
parent0cd31abbc4e520d93bc4a0f5480dc898bbe5f25b (diff)
Add project owner support (allow user management to a regular user), see #316
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>