Skip to content

Commit

Permalink
#3639 update catalog pricing permission typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nfourtythree committed Aug 21, 2024
1 parent 5451bc9 commit abbddef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Fixed a bug where variants’ `promotionalPrices` weren’t showing as currency values on variant indexes.
- Fixed a PHP error that could occur when sending an order email. ([#3596](https://github.com/craftcms/commerce/issues/3596))
- Fixed a bug where dimension fields were not displaying values in the correct formatting locale. ([#3636](https://github.com/craftcms/commerce/issues/3636))
- Fixed a bug where users couldn’t access catalog pricing rules even if the current user had permission. ([#3639](https://github.com/craftcms/commerce/issues/3639))

## 5.0.16.2 - 2024-08-16

Expand Down
8 changes: 4 additions & 4 deletions src/templates/store-management/pricing-rules/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
]) %}

{% block actionButton %}
{% if currentUser.can('commerce-createPricingCatalogRules') %}
{% if currentUser.can('commerce-createCatalogPricingRules') %}
<a href="{{ url("commerce/store-management/#{storeHandle}/pricing-rules/new") }}" class="btn submit add icon">{{ 'New catalog pricing rule'|t('commerce') }}</a>
{% endif %}
{% endblock %}
Expand Down Expand Up @@ -57,7 +57,7 @@

{% js %}
var actions = [
{% if currentUser.can('commerce-editPricingCatalogRules') %}
{% if currentUser.can('commerce-editCatalogPricingRules') %}
{
label: Craft.t('commerce', 'Set status'),
actions: [
Expand All @@ -78,7 +78,7 @@ var actions = [
]
},
{% endif %}
{% if currentUser.can('commerce-deletePricingCatalogRules') %}
{% if currentUser.can('commerce-deleteCatalogPricingRules') %}
{
label: Craft.t('commerce', 'Delete'),
action: 'commerce/catalog-pricing-rules/delete',
Expand Down Expand Up @@ -106,7 +106,7 @@ new Craft.VueAdminTable({
columns: columns,
fullPane: false,
container: '#pcr-vue-admin-table',
deleteAction: {{ currentUser.can('commerce-deletePricingCatalogRules')? '"commerce/catalog-pricing-rules/delete"' : 'null' }},
deleteAction: {{ currentUser.can('commerce-deleteCatalogPricingRules')? '"commerce/catalog-pricing-rules/delete"' : 'null' }},
emptyMessage: Craft.t('commerce', 'No catalog pricing rules exist yet.'),
padded: true,
tableData: {{ tableData|json_encode|raw }}
Expand Down

0 comments on commit abbddef

Please sign in to comment.