diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-11 20:51:40 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-11 20:51:40 -0500 |
commit | 76019d76287f174cb6bf81fe052dc5c5c53be46c (patch) | |
tree | 51398e06b6a96b9b91e4a90ce7871d44f93a4a70 /app/Template/project/sidebar.php | |
parent | 0cd31abbc4e520d93bc4a0f5480dc898bbe5f25b (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.php | 4 |
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> |