enforce add to cart permission at the entity access level?

Created on 25 September 2017, almost 7 years ago
Updated 12 March 2023, over 1 year ago

It occurs to me that since the Add to Cart form is secretly an entity create form for the order item entity, we could also enforce this with hook_entity_create_access().

I had a quick go at this, but turning into a rabbithole...

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024