diff --git a/ckanext/datastore/templates-bs2/package/resource_read.html b/ckanext/datastore/templates-bs2/package/resource_read.html index a19872bf3d5..09b23299831 100644 --- a/ckanext/datastore/templates-bs2/package/resource_read.html +++ b/ckanext/datastore/templates-bs2/package/resource_read.html @@ -33,7 +33,7 @@

{{ _('Data Dictionary') }}

{% endif %} - {% if res.query %} + {% if res.query and h.check_access('resource_update', {'id':res.id}) %}

{{ _('Resource Query') }}

{{ _('Click Run Query to update the data in this resource.') }}

diff --git a/ckanext/datastore/templates/package/resource_read.html b/ckanext/datastore/templates/package/resource_read.html index 5f5ead788a1..968290e5d76 100644 --- a/ckanext/datastore/templates/package/resource_read.html +++ b/ckanext/datastore/templates/package/resource_read.html @@ -33,7 +33,7 @@

{{ _('Data Dictionary') }}

{% endblock %} {% endif %} - {% if res.query %} + {% if res.query and h.check_access('resource_update', {'id':res.id}) %}

{{ _('Resource Query') }}

{{ _('Click Run Query to update the data in this resource.') }}