diff options
Diffstat (limited to 'app/Template/user/sidebar.php')
-rw-r--r-- | app/Template/user/sidebar.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Template/user/sidebar.php b/app/Template/user/sidebar.php index 5b7abc34..f74c8b01 100644 --- a/app/Template/user/sidebar.php +++ b/app/Template/user/sidebar.php @@ -5,7 +5,7 @@ <?= $this->a(t('Summary'), 'user', 'show', array('user_id' => $user['id'])) ?> </li> - <?php if ($this->acl->isAdminUser() || $this->acl->isCurrentUser($user['id'])): ?> + <?php if ($this->userSession->isAdmin() || $this->userSession->isCurrentUser($user['id'])): ?> <li> <?= $this->a(t('Edit profile'), 'user', 'edit', array('user_id' => $user['id'])) ?> </li> @@ -30,7 +30,7 @@ </li> <?php endif ?> - <?php if ($this->acl->isAdminUser() && ! $this->acl->isCurrentUser($user['id'])): ?> + <?php if ($this->userSession->isAdmin() && ! $this->userSession->isCurrentUser($user['id'])): ?> <li> <?= $this->a(t('Remove'), 'user', 'remove', array('user_id' => $user['id'])) ?> </li> |