Closed (fixed)
Project:
Jsonapi Role Access
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2025 at 09:11 UTC
Updated:
4 Dec 2025 at 11:49 UTC
Jump to comment: Most recent
This module has a few problems (e.g. #3551233: "Which user type should be allowed" (negate) setting is implemented incorrectly, #3437797: Role hiding assumption is too optimistic, etc.) we should refactor some of the code in the module.
Refactor the module
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 #3
grevil commentedAll right, all done. Quite a bit of refactoring, but everything is pretty straigth forward, except the removal of the javascript, but hear me out on this one.
Conditionally hiding / showing checkboxes has many problems:
Also, the user is now also able to select the "administrator" role. Unsure, why this was filtered out from the options.
Please review!
Comment #4
anybodyOkay I'm fine with the decision, but we should keep "negate" as Drupal standard IMHO
Comment #5
grevil commentedDone!
Comment #6
anybodyComment #7
grevil commentedPipeline display is stuck. Pipeline is green: https://git.drupalcode.org/project/jsonapi_role_access/-/pipelines/666020. Merging....
Comment #9
grevil commented