summaryrefslogtreecommitdiff
path: root/templates/project_tasks.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/project_tasks.php')
-rw-r--r--templates/project_tasks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/project_tasks.php b/templates/project_tasks.php
index ed244c34..5b3125f8 100644
--- a/templates/project_tasks.php
+++ b/templates/project_tasks.php
@@ -4,7 +4,7 @@
<ul>
<li><a href="?controller=board&amp;action=show&amp;project_id=<?= $project['id'] ?>"><?= t('Back to the board') ?></a></li>
<li><a href="?controller=project&amp;action=index"><?= t('List of projects') ?></a></li>
- <?php if ($_SESSION['user']['is_admin'] == 1): ?>
+ <?php if (Helper\is_admin()): ?>
<li><a href="?controller=project&amp;action=create"><?= t('New project') ?></a></li>
<?php endif ?>
</ul>