Skip to content

Commit

Permalink
update datarequests: redirect to login if not authenticated
Browse files Browse the repository at this point in the history
  • Loading branch information
thepsalmist committed Mar 4, 2024
1 parent 5a99b14 commit 1152163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/openafrica/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<li><a href="/group">Groups</a></li>
<li><a href="/about">About</a></li>
{% if h.is_plugin_enabled('datarequests') %}
{% if h.check_access('site_read') %}
{% if g.user %}
<li><a href="/datarequest">{{_('Data Requests')}}</a></li>
{% else %}
<li><a href="/user/login?came_from=/datarequest">{{_('Data Requests')}}</a></li>
Expand Down

0 comments on commit 1152163

Please sign in to comment.