Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
entity_reference.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Nov 2012 at 07:27 UTC
Updated:
29 Jul 2014 at 21:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
amateescu commentedThis change is really small, but unfortunately postponed on #1862750: Implement entity access API for nodes.
Comment #2
berdirNot related to this but MENU_ACCESS_DENIED does not exist anymore this should throw an AccessDeniedException().
Comment #3
damien tournoud commentedComment #4
amateescu commentedThe node access patch has been committed, now should be a good time to do this.
Comment #5
berdir#1: 1847600.patch queued for re-testing.
Comment #6
berdirTagging.
Comment #7
amateescu commentedThat's being fixed in #1801356: Entity reference autocomplete using routes.
Other than that, this patch is a no-brainer.. RTBC anyone? :)
Comment #8
berdircomments have not been converted to entity access API, so they would get broken by this, in case someone would attempt to do something that crazy ;)
Also, if that other issue fixes that, it will conflict with this change. Will RTBC once that one is in and this re-rolled.
Comment #9
berdir#1: 1847600.patch queued for re-testing.
Comment #11
amateescu commentedRerolled.
Comment #12
berdirYes, patch context looks better now :)
With the current code, the access defaults to TRUE if they are not nodes. The default entity access controller however defaults to FALSE.
This means that references to entity types that do not provide an entity access controller will no longer work. Which right now in core means comments and files.
That might or might not block this from being committed right now, but the code changes here are fine and will not require additional changes, so setting to RTBC.
Comment #13
webchickWell, that seems simple enough.
Committed and pushed to 8.x. Thanks!