From 0ff6b981a8878176d238985bf31c992bbde4b052 Mon Sep 17 00:00:00 2001 From: SecretR Date: Mon, 4 Mar 2013 14:58:53 +0200 Subject: [PATCH] Fix admin main navigation visible for non-main administrators --- e107_core/shortcodes/batch/admin_shortcodes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_core/shortcodes/batch/admin_shortcodes.php b/e107_core/shortcodes/batch/admin_shortcodes.php index 73dd1ca9d..10e23e1b5 100644 --- a/e107_core/shortcodes/batch/admin_shortcodes.php +++ b/e107_core/shortcodes/batch/admin_shortcodes.php @@ -1446,7 +1446,8 @@ Inverse 10 10 $menu_vars[$id]['image_large'] = "".$admin_cat["; $menu_vars[$id]['image_src'] = $admin_cat['img'][$i]; $menu_vars[$id]['image_large_src'] = $admin_cat['lrg_img'][$i]; - $menu_vars[$id]['perm'] = ''; + // FIX - 'perm' should not be set or navigation->admin() will be broken (bad permissions) for non main administrators + //$menu_vars[$id]['perm'] = ''; $menu_vars[$id]['sort'] = $admin_cat['sort'][$i]; }