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/user_edit.php | |
parent | b664175b043e0db1930325b771859ab730ffee53 (diff) |
Add helpers for the user session and fix bug edit_user admin checkbox
Diffstat (limited to 'templates/user_edit.php')
-rw-r--r-- | templates/user_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user_edit.php b/templates/user_edit.php index 66794c49..c65f3381 100644 --- a/templates/user_edit.php +++ b/templates/user_edit.php @@ -22,7 +22,7 @@ <?= Helper\form_label(t('Default Project'), 'default_project_id') ?> <?= Helper\form_select('default_project_id', $projects, $values, $errors) ?><br/> - <?php if ($values['is_admin'] == 1): ?> + <?php if (Helper\is_admin()): ?> <?= Helper\form_checkbox('is_admin', t('Administrator'), 1, isset($values['is_admin']) && $values['is_admin'] == 1 ? true : false) ?> <?php endif ?> |