Right now the only access control you have if you want to allow people to view coupons, is administer coupons.
This is pretty bad since access is required when viewing fx your own coupon on the order via the entity reference field. We should have proper CRUD permissions.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1856822_remove_debug.patch | 522 bytes | googletorp |
| #2 | 1856822-2-proper_access_control.patch | 2.66 KB | googletorp |
| #1 | 1856822-proper_access_control.patch | 2.63 KB | googletorp |
Comments
Comment #1
googletorp commentedAnd the patch.
Comment #2
googletorp commentedFixed typo in previous patch.
Comment #3
pcambraNice idea, I've implemented a different and more complete version by relying on commerce_entity_access tools.
http://drupalcode.org/project/commerce_coupon.git/commit/1d57ae4c6c71ec9...
Thanks
Comment #4
googletorp commentedLooks good, but you had debug code in your commit.
Added a patch that fixes this.
Comment #5
pcambraThanks for the catch, fixed