diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-11 21:05:35 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-11 21:05:35 -0500 |
commit | 4232d731bda28793e780ac18bae8b6c6adedd902 (patch) | |
tree | 665524e8a74e9d8ca856973855f90cbed74b3601 /app/Template | |
parent | 76019d76287f174cb6bf81fe052dc5c5c53be46c (diff) |
Give more privileges to a project owner
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/project/sidebar.php | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/app/Template/project/sidebar.php b/app/Template/project/sidebar.php index ef591d2e..45cf4fb1 100644 --- a/app/Template/project/sidebar.php +++ b/app/Template/project/sidebar.php @@ -12,23 +12,25 @@ <li> <?= Helper\a(t('Edit project'), 'project', 'edit', array('project_id' => $project['id'])) ?> </li> - <li> - <?= Helper\a(t('Edit board'), 'board', 'edit', array('project_id' => $project['id'])) ?> - </li> - <li> - <?= Helper\a(t('Category management'), 'category', 'index', array('project_id' => $project['id'])) ?> - </li> <?php endif ?> - <?php if ((Helper\is_admin() || $is_owner) && $project['is_private'] == 0): ?> + <?php if (Helper\is_admin() || $is_owner || $project['is_private']): ?> + <li> + <?= Helper\a(t('Edit board'), 'board', 'edit', array('project_id' => $project['id'])) ?> + </li> + <li> + <?= Helper\a(t('Category management'), 'category', 'index', array('project_id' => $project['id'])) ?> + </li> + <?php if ($project['is_private'] == 0): ?> <li> <?= Helper\a(t('User management'), 'project', 'users', array('project_id' => $project['id'])) ?> </li> + <?php endif ?> + <li> + <?= Helper\a(t('Automatic actions'), 'action', 'index', 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> - <li> <?= Helper\a(t('Duplicate'), 'project', 'duplicate', array('project_id' => $project['id']), true) ?> </li> <li> |