diff --git a/ckan/lib/helpers.py b/ckan/lib/helpers.py index 9c87be32616..00890a9e64d 100644 --- a/ckan/lib/helpers.py +++ b/ckan/lib/helpers.py @@ -379,7 +379,9 @@ def build_nav_main(*args): ''' output = '' for item in args: - menu_item, title = item + menu_item, title = item[:2] + if len(item) == 3 and not check_access(item[2]): + continue output += _make_menu_item(menu_item, title) return output diff --git a/ckan/templates/header.html b/ckan/templates/header.html index 5d8775a426b..517c5770d75 100644 --- a/ckan/templates/header.html +++ b/ckan/templates/header.html @@ -28,7 +28,7 @@

{{ g.site_title }}

{% endif %}