- 🇺🇸United States smustgrave
This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request → as a guide.
I tried replicating this in D10.1.x by adding a custom media type
Giving the content editor role permission to create just image media types.
The admin media button appears fine.Could use additional steps to show this issue.
- 🇪🇸Spain plopesc Valladolid
@smustgrave
I have been able to reproduce the bug and can confirm that patch in #19 works
Steps to reproduce:
- Create a 2 bundles of a specific entity type (first_bundle & last_bundle)
- Implement
hook_ENTITY_TYPE_create_access()
for the specific entity type and returnAccessResult::forbidden()
for last_bundle - The /entity_type/add page is loaded and only allows to create "first_bundle" items
- Modify the hook above to return
AccessResult::forbidden()
for first_bundle - The add page shows Access Denied, even if it is possible to create last_bundle entities and is possible to create them if you access directly to /entity_type/add/last_bundle
The bundle name is an important point in this issue, because bundles are loaded alphabetically, and the bug only happens if the forbidden bundle comes first.
- 🇺🇸United States bkosborne New Jersey, USA
Sigh, ran into this myself after lots of time debugging. Glad there's some movement on this and others find it buggy. I think this affects anyone that is using hook_create_access to forbid access to specific bundles of an entity type.
- Status changed to Needs review
over 1 year ago 1:45pm 21 April 2023 - Status changed to RTBC
over 1 year ago 6:11pm 4 May 2023 - last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail 31:36 27:58 Running- last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail - last update
over 1 year ago 30,157 pass, 2 fail - Status changed to Fixed
over 1 year ago 2:59pm 12 June 2023 - 🇬🇧United Kingdom catch
Attempting a more descriptive title.
Committed/pushed to 11.x and cherry-picked back through to 9.5.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.