- Issue created by @nikolabintev
When I try to expose the configurable language resource through JSON:API I've got the following access check:
"The current user is not allowed to GET the selected resource. The 'administer languages' permission is required."
This is due to the fact that all requests to the JSON:API endpoint are considered to be made by unauthenticated users and I don't want to grant anonymous users "administer languages" permission in order to have the languages in JSON API.
The quick fix for that is to implement hook_entity_access
or hook_ENTITY_TYPE_access
to modify the access control handler for "view" operations.
Another solution is to introduce a "view" permission for configurable languages similar to the Vocabulary entity where the "Access the taxonomy vocabulary overview page" permission can be used to have all vocabularies exposed through JSON:API
I'd like to hear your opinion on that.
Nothing yet.
Nope
Nope
Nope
Active
10.1 ✨