From 54c0e51c037759a0a51609fbe553c579db6c843e Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 2 Feb 2021 12:12:08 -0600 Subject: [PATCH] Fix permission bug for "download purchase for CORE" feature --- tailbone_corepos/views/purchases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone_corepos/views/purchases.py b/tailbone_corepos/views/purchases.py index d9fe1f4..355bb48 100644 --- a/tailbone_corepos/views/purchases.py +++ b/tailbone_corepos/views/purchases.py @@ -126,7 +126,7 @@ class PurchaseView(base.PurchaseView): config.add_route('{}.download_for_corepos'.format(route_prefix), '{}/download-for-corepos'.format(instance_url_prefix)) config.add_view(cls, attr='download_for_corepos', route_name='{}.download_for_corepos'.format(route_prefix), permission='{}.download_for_corepos'.format(permission_prefix)) - config.add_tailbone_permission(permission_prefix, '{}.download'.format(permission_prefix), + config.add_tailbone_permission(permission_prefix, '{}.download_for_corepos'.format(permission_prefix), "Download {} for import to CORE-POS".format(model_title))