News:

Looking for documentation? Take a look on our wiki

Main Menu

Miising ACL for Coupon state

Started by n3t, November 29, 2021, 11:50:47 AM

Previous topic - Next topic

n3t

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.