Skip to content
Permalink
Browse files

Resolve logged error in menus.php

  • Loading branch information...
chrisgraham committed Aug 11, 2019
1 parent 428bfd5 commit 36cd166a2c0a6b66c18ef9a95d419ace28aaac2e
Showing with 4 additions and 0 deletions.
  1. +4 −0 sources/menus.php
@@ -568,6 +568,10 @@ function _render_menu_branch($branch, $codename, $source_member, $level, $type,
// If we need to check access
if (isset($branch['modifiers']['check_perms'])) {
if (!function_exists('get_member')) {
return array(null, false); // Some kind of startup issue
}
require_code('permissions');
if (!has_zone_access(get_member(), $zone_name)) {
return array(null, false);
}

0 comments on commit 36cd166

Please sign in to comment.
You can’t perform that action at this time.