aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/admin.php')
-rw-r--r--engine/lib/admin.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php
index 4e0c4f681..104b362a9 100644
--- a/engine/lib/admin.php
+++ b/engine/lib/admin.php
@@ -220,13 +220,15 @@ function admin_init() {
// plugin settings are added in elgg_admin_add_plugin_settings_menu() via the admin page handler
// for performance reasons.
- elgg_register_menu_item('topbar', array(
- 'name' => 'administration',
- 'href' => 'admin',
- 'text' => elgg_view_icon('settings') . elgg_echo('admin'),
- 'priority' => 100,
- 'section' => 'alt',
- ));
+ if (elgg_is_admin_logged_in()) {
+ elgg_register_menu_item('topbar', array(
+ 'name' => 'administration',
+ 'href' => 'admin',
+ 'text' => elgg_view_icon('settings') . elgg_echo('admin'),
+ 'priority' => 100,
+ 'section' => 'alt',
+ ));
+ }
// widgets
$widgets = array('online_users', 'new_users', 'content_stats', 'admin_welcome');