From bc8441c95cbd1c78384482de88d6c2be67add880 Mon Sep 17 00:00:00 2001 From: tobes Date: Tue, 2 Oct 2012 12:03:31 +0100 Subject: [PATCH] [#2939] Group/Org index template fixes --- ckan/templates/group/index.html | 2 +- ckan/templates/organization/index.html | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ckan/templates/group/index.html b/ckan/templates/group/index.html index b5a9ffc8a77..d2b5f7170f8 100644 --- a/ckan/templates/group/index.html +++ b/ckan/templates/group/index.html @@ -21,7 +21,7 @@

{{ _('Groups') }}

{% else %}

{{ _('There are currently no groups for this site') }}. - {% if h.check_access('package_create') %} + {% if h.check_access('group_create') %} {% link_for _('How about creating one?'), controller='group', action='new' %}. {% endif %}

diff --git a/ckan/templates/organization/index.html b/ckan/templates/organization/index.html index 018bf420a53..3aa772d4e03 100644 --- a/ckan/templates/organization/index.html +++ b/ckan/templates/organization/index.html @@ -7,7 +7,9 @@ {% endblock %} {% block actions_content %} -
  • {% link_for _('Add Organization'), controller='organization', action='new', class_='btn', icon='plus' %}
  • + {% if h.check_access('organization_create') %} +
  • {% link_for _('Add Organization'), controller='organization', action='new', class_='btn', icon='plus' %}
  • + {% endif %} {% endblock %} {% block primary_content %}