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:
@@ -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']))
|
||||||
|
Reference in New Issue
Block a user