From 723eb2f611727cb7a1d8b64e1a7814de94be9cc9 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 27 Nov 2008 11:43:48 +0000 Subject: Move the ADMIN global nav option into the core module and only show it if we're logged in as an admin user --- core/helpers/core_block.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/helpers') diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index 469dcf86..801ffb82 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -25,4 +25,11 @@ class core_block_Core { return new View("in_place_edit.html"); } } + + public static function navigation_bottom($theme) { + $user = Session::instance()->get('user', null); + if ($user && $user->admin) { + return "
  • " . _("ADMIN") . "
  • "; + } + } } \ No newline at end of file -- cgit v1.2.3