Fix permission bug for "download purchase for CORE" feature

This commit is contained in:
Lance Edgar 2021-02-02 12:12:08 -06:00
parent eb1cfbd495
commit 54c0e51c03

View file

@ -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))