diff options
author | Frédéric Guillot <contact@fredericguillot.com> | 2014-02-23 20:25:49 -0500 |
---|---|---|
committer | Frédéric Guillot <contact@fredericguillot.com> | 2014-02-23 20:25:49 -0500 |
commit | 229859445515b9f8e379a2037f177cbd277094d7 (patch) | |
tree | e369193020c252ba30f0ff92129f10440713eec1 /templates/project_tasks.php | |
parent | b664175b043e0db1930325b771859ab730ffee53 (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.php | 2 |
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&action=show&project_id=<?= $project['id'] ?>"><?= t('Back to the board') ?></a></li> <li><a href="?controller=project&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&action=create"><?= t('New project') ?></a></li> <?php endif ?> </ul> |