Hi, thanks for this module!
I see it creates a role "JSON:API User" on install, which I believe is not right. It should be up to the site owner to assign the permission to the role(s) that need it.
https://git.drupalcode.org/project/jsonapi_permission_access/-/blob/1.0....
Issue fork jsonapi_permission_access-3573758
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
aayushpathak commentedworking on it !
Comment #4
aayushpathak commentedComment #6
dan612 commentedHi @aayushpathak! Thanks for the issue 😄
I think this is fine. Initially this was included to provide a straightforward way for users to attach a role to JSON:API - but it is probably best to leave this up to the site builders / developers instead of forcing a new role into the system.
I do not think this should break any existing installations since the configuration is optional and if a site is using the role it should be committed as part of their default config.
Comment #7
dan612 commentedComment #8
dan612 commentedMoving to RTBC for now. Going to evaluate if this module needs any other updates and then will release a new version with this included. Once new version is released I will mark this as fixed!
Comment #9
dan612 commentedIncluded as part of 1.0.2 tag - I am hoping to get Security Coverage for the module prior to the new release 🙂
Once that happens 🤞🏻 I will make the new release and mark this as fixed!