1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-17 03:54:09 +02:00

Issue #2883 Permission fixes.

This commit is contained in:
Cameron
2017-12-01 17:00:02 -08:00
parent 5014558f7b
commit 5e4c172c2f
6 changed files with 33 additions and 18 deletions

View File

@@ -1964,7 +1964,8 @@ Inverse 10 <span class="badge badge-inverse">10</span>
$active = '';
foreach ($array_functions as $key => $subitem)
{
if(!empty($subitem[3]) && !getperms($subitem[3]))
if(isset($subitem[3]) && $subitem[3] !== false && !getperms($subitem[3]))
{
continue;
}
@@ -2077,8 +2078,7 @@ Inverse 10 <span class="badge badge-inverse">10</span>
// ------------------------------------------------------------------
// print_a($menu_vars);
// e107::getDebug()->log($menu_vars);
return e107::getNav()->admin('', $active, $menu_vars, $$tmpl, false, false);