Skip to content

Commit

Permalink
Merge pull request #8029 from Labuschagne-Miro/Labuschagne-Miro-patch-3
Browse files Browse the repository at this point in the history
Fixed the editing of resources unavailable from package view page
  • Loading branch information
wardi committed Jan 30, 2024
2 parents a8635ab + a64bf86 commit 46b1041
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/8025.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Editing of resources unavailable from package view page.
2 changes: 1 addition & 1 deletion ckan/templates/package/snippets/resources_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<h2>{{ _('Data and Resources') }}</h2>
{% block resource_list %}
{% if resources %}
{% set can_edit = can_edit or h.check_access('package_update', {'id':pkg.id }) %}
<ul class="{% block resource_list_class %}resource-list{% endblock %}">
{% block resource_list_inner %}
{% set can_edit = can_edit or h.check_access('package_update', {'id':pkg.id }) %}
{% for resource in resources %}
{% snippet 'package/snippets/resource_item.html', pkg=pkg, res=resource, can_edit=can_edit %}
{% endfor %}
Expand Down

0 comments on commit 46b1041

Please sign in to comment.