enforce add to cart permission at the entity access level?

Created on 25 September 2017, about 7 years ago
Updated 12 March 2023, almost 2 years 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.71.5 2024