Skip to content

Commit

Permalink
show 'Groups' button in header only if he passes 'group_create' autho…
Browse files Browse the repository at this point in the history
…rization check
  • Loading branch information
mvi-eea-sk committed Sep 10, 2015
1 parent b8e0410 commit 190de1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/odn_theme/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ <h1 id="sitetitlestring">
{{ h.build_nav_main(
('search', _('Datasets')),
('organizations_index', _('Organizations')),
('group_index', _('Groups')),
('group_index', _('Groups'), 'group_create'),
) }}
{% else %}
{{ h.build_nav_main(
('search', _('Datasets')),
('organizations_index', _('Organizations')),
('group_index', _('Groups')),
('group_index', _('Groups'), 'group_create'),
('about', _('About'))
) }}
{% endif %}
Expand Down

0 comments on commit 190de1f

Please sign in to comment.