Closed (works as designed)
Project:
JSON:API
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Apr 2018 at 06:17 UTC
Updated:
20 Jul 2018 at 23:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gargsuchi commentedPatch attached for fix.
Comment #3
gabesulliceI'm not sure what the "1" here is supposed to mean, can you explain?
I don't think JSON API module should start making special exceptions for entity types. Unfortunately, I can't take this patch as is.
I would recommend implementing
hook_entity_accessin a custom module for themenuandmenu_link_contententity types and/or giving anonymous users the appropriate permissions to view them. Then, those access rules will be picked up automatically and honored by JSON API.Thanks for the report and patch though!
Comment #4
alex.skrypnykAttached is an updated version of the patch in #2 for those who needs this functionality.
Comment #5
wim leers#2 + #4: Note that
view labelsupport is present in JSON API 2.x: #2843922: Show label of inaccessible entities ('view' access denied) when 'view label' access is allowed. The patches in #2 and #4 introduce a security vulnerability though!