diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-31 12:37:15 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-31 12:37:15 -0500 |
commit | 772804add8095eea9b3ec2a832c2f82fbb9a6fd5 (patch) | |
tree | 782a414d15f9091d04bcf3960a957f952958e548 /app/Template/user/sidebar.php | |
parent | 66f150d887a34d2b51ff14f22d0fd41a34f8cc77 (diff) |
Acl refactoring
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> |