summaryrefslogtreecommitdiff
path: root/templates/project_tasks.php
diff options
context:
space:
mode:
authorFrédéric Guillot <contact@fredericguillot.com>2014-02-23 20:25:49 -0500
committerFrédéric Guillot <contact@fredericguillot.com>2014-02-23 20:25:49 -0500
commit229859445515b9f8e379a2037f177cbd277094d7 (patch)
treee369193020c252ba30f0ff92129f10440713eec1 /templates/project_tasks.php
parentb664175b043e0db1930325b771859ab730ffee53 (diff)
Add helpers for the user session and fix bug edit_user admin checkbox
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>