diff options
Diffstat (limited to 'app/Template/user/layout.php')
-rw-r--r-- | app/Template/user/layout.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Template/user/layout.php b/app/Template/user/layout.php index a5a78a3f..e60ab77d 100644 --- a/app/Template/user/layout.php +++ b/app/Template/user/layout.php @@ -1,9 +1,9 @@ <section id="main"> <div class="page-header"> - <?php if ($this->userSession->isAdmin()): ?> + <?php if ($this->user->isAdmin()): ?> <ul> - <li><i class="fa fa-user fa-fw"></i><?= $this->a(t('All users'), 'user', 'index') ?></li> - <li><i class="fa fa-plus fa-fw"></i><?= $this->a(t('New user'), 'user', 'create') ?></li> + <li><i class="fa fa-user fa-fw"></i><?= $this->url->link(t('All users'), 'user', 'index') ?></li> + <li><i class="fa fa-plus fa-fw"></i><?= $this->url->link(t('New user'), 'user', 'create') ?></li> </ul> <?php endif ?> </div> |