summaryrefslogtreecommitdiff
path: root/app/Template/user/sidebar.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/user/sidebar.php')
-rw-r--r--app/Template/user/sidebar.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/Template/user/sidebar.php b/app/Template/user/sidebar.php
index 0a1a0764..5b7abc34 100644
--- a/app/Template/user/sidebar.php
+++ b/app/Template/user/sidebar.php
@@ -2,37 +2,37 @@
<h2><?= t('Actions') ?></h2>
<ul>
<li>
- <?= Helper\a(t('Summary'), 'user', 'show', array('user_id' => $user['id'])) ?>
+ <?= $this->a(t('Summary'), 'user', 'show', array('user_id' => $user['id'])) ?>
</li>
- <?php if (Helper\is_admin() || Helper\is_current_user($user['id'])): ?>
+ <?php if ($this->acl->isAdminUser() || $this->acl->isCurrentUser($user['id'])): ?>
<li>
- <?= Helper\a(t('Edit profile'), 'user', 'edit', array('user_id' => $user['id'])) ?>
+ <?= $this->a(t('Edit profile'), 'user', 'edit', array('user_id' => $user['id'])) ?>
</li>
<?php if ($user['is_ldap_user'] == 0): ?>
<li>
- <?= Helper\a(t('Change password'), 'user', 'password', array('user_id' => $user['id'])) ?>
+ <?= $this->a(t('Change password'), 'user', 'password', array('user_id' => $user['id'])) ?>
</li>
<?php endif ?>
<li>
- <?= Helper\a(t('Email notifications'), 'user', 'notifications', array('user_id' => $user['id'])) ?>
+ <?= $this->a(t('Email notifications'), 'user', 'notifications', array('user_id' => $user['id'])) ?>
</li>
<li>
- <?= Helper\a(t('External accounts'), 'user', 'external', array('user_id' => $user['id'])) ?>
+ <?= $this->a(t('External accounts'), 'user', 'external', array('user_id' => $user['id'])) ?>
</li>
<li>
- <?= Helper\a(t('Last logins'), 'user', 'last', array('user_id' => $user['id'])) ?>
+ <?= $this->a(t('Last logins'), 'user', 'last', array('user_id' => $user['id'])) ?>
</li>
<li>
- <?= Helper\a(t('Persistent connections'), 'user', 'sessions', array('user_id' => $user['id'])) ?>
+ <?= $this->a(t('Persistent connections'), 'user', 'sessions', array('user_id' => $user['id'])) ?>
</li>
<?php endif ?>
- <?php if (Helper\is_admin() && ! Helper\is_current_user($user['id'])): ?>
+ <?php if ($this->acl->isAdminUser() && ! $this->acl->isCurrentUser($user['id'])): ?>
<li>
- <?= Helper\a(t('Remove'), 'user', 'remove', array('user_id' => $user['id'])) ?>
+ <?= $this->a(t('Remove'), 'user', 'remove', array('user_id' => $user['id'])) ?>
</li>
<?php endif ?>
</ul>