Skip to content

Commit

Permalink
[#3816] show run query button based on resource edit access
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Feb 5, 2018
1 parent 1f16478 commit 2122822
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckanext/datastore/templates-bs2/package/resource_read.html
Expand Up @@ -33,7 +33,7 @@ <h2>{{ _('Data Dictionary') }}</h2>
</table>
</div>
{% endif %}
{% if res.query %}
{% if res.query and h.check_access('resource_update', {'id':res.id}) %}
<div class="module-content">
<h2>{{ _('Resource Query') }}</h2>
<p>{{ _('Click Run Query to update the data in this resource.') }}</p>
Expand Down
2 changes: 1 addition & 1 deletion ckanext/datastore/templates/package/resource_read.html
Expand Up @@ -33,7 +33,7 @@ <h2>{{ _('Data Dictionary') }}</h2>
</div>
{% endblock %}
{% endif %}
{% if res.query %}
{% if res.query and h.check_access('resource_update', {'id':res.id}) %}
<div class="module-content">
<h2>{{ _('Resource Query') }}</h2>
<p>{{ _('Click Run Query to update the data in this resource.') }}</p>
Expand Down

0 comments on commit 2122822

Please sign in to comment.