VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: n3t on November 29, 2021, 11:50:47 AM

Title: Miising ACL for Coupon state
Post by: n3t on November 29, 2021, 11:50:47 AM
Hi,

I just discovered that there ois no ACL for Coupon edit state. Even when all 4 ACL are enabled for coupons (access, edit, view and delete), useres with limited access (non super users) are not able to edit state of coupon.
Solution is to add

<action name="vm.coupon.edit.state" title="COM_VM_COUPON_EDIT_STATE" description="COM_VM_COUPON_EDIT_STATE_TIP" />

to access.xml file, plus language constants

COM_VM_COUPON_EDIT_STATE="Coupon edit state"
COM_VM_COUPON_EDIT_STATE_TIP="Allow to edit state of coupon"

to en-GB.com_virtuemart_perms.ini

This adds proper ACl in ACL list and works out of box. Thank you for consideration to include this in core.