diff options
-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> |