Add helpers for the user session and fix bug edit_user admin checkbox

This commit is contained in:
Frédéric Guillot
2014-02-23 20:25:49 -05:00
parent b664175b04
commit 2298594455
5 changed files with 18 additions and 8 deletions

View File

@@ -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>