diff --git a/CHANGELOG.md b/CHANGELOG.md index 16d6de6b..9b6cd91c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Release Notes for Campaign +## 2.13.2 - Unreleased + +### Fixed + +- Fixed the buttons to create new campaign types and mailing list types appearing when allow admin changes was disabled or the user did not have the necessary permissions. + ## 2.13.1 - 2024-03-26 ### Fixed diff --git a/composer.json b/composer.json index cf66ba38..bb3c3e6f 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "putyourlightson/craft-campaign", "description": "Send and manage email campaigns, contacts and mailing lists.", - "version": "2.13.1", + "version": "2.13.2", "type": "craft-plugin", "homepage": "https://putyourlightson.com/plugins/campaign", "license": "proprietary", diff --git a/src/templates/campaigns/index.twig b/src/templates/campaigns/index.twig index beead264..2bc7a6c3 100644 --- a/src/templates/campaigns/index.twig +++ b/src/templates/campaigns/index.twig @@ -12,14 +12,16 @@ ]) %} {% block content %} - {% if allCampaignTypes|length == 0 %} + {% if allCampaignTypes|length >= 0 %}
{{ 'No campaign types exist.'|t('campaign') }}
- + {% if craft.app.config.general.allowAdminChanges and currentUser.can('campaign:settings') %} + + {% endif %}{{ 'No mailing list types exist.'|t('campaign') }}
- + {% if craft.app.config.general.allowAdminChanges and currentUser.can('campaign:settings') %} + + {% endif %}