From 6c9038af0f60a333ed8ad5a4e764f46c32c21528 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Mon, 28 Dec 2009 00:29:39 +0000 Subject: [PATCH] admin_ui now takes into account the perm of the adminMenu before rendering. --- e107_handlers/admin_ui.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index bbd5667ad..49781c57f 100644 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -1299,7 +1299,19 @@ class e_admin_dispatcher $k2 = $k; break; } - $var[$key][$k2] = $v; + + if($val['perm']!= null) // check perms + { + if(getperms($val['perm'])) + { + $var[$key][$k2] = $v; + } + } + else + { + $var[$key][$k2] = $v; + } + } // TODO slide down menu options? if(!vartrue($var[$key]['link']))