diff --git a/ckan/templates/organization/edit_base.html b/ckan/templates/organization/edit_base.html index cffc49d7980..2bb1a95434e 100644 --- a/ckan/templates/organization/edit_base.html +++ b/ckan/templates/organization/edit_base.html @@ -15,7 +15,7 @@ {% endblock %} {% block actions_content %} - {% if h.check_access('organization_update', {'id': c.group.id}) %} + {% if organization and h.check_access('organization_update', {'id': c.group.id}) %}
  • {{ _('View organization') }}
  • {% endif %} {#
  • {% link_for _('History'), controller='organization', action='history', id=organization.name, class_='btn', icon='undo' %}
  • #} @@ -43,7 +43,9 @@ {% endblock %} {% block secondary_content %} - {% snippet 'snippets/organization.html', organization=organization %} + {% if organization %} + {% snippet 'snippets/organization.html', organization=organization %} + {% endif %} {% endblock %} {% block links %}