1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-29 17:19:56 +02:00

admin_ui now takes into account the perm of the adminMenu before rendering.

This commit is contained in:
CaMer0n
2009-12-28 00:29:39 +00:00
parent b3dc19d4e0
commit 6c9038af0f

View File

@@ -1299,7 +1299,19 @@ class e_admin_dispatcher
$k2 = $k; $k2 = $k;
break; 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? // TODO slide down menu options?
if(!vartrue($var[$key]['link'])) if(!vartrue($var[$key]['link']))