I just upgraded a site from D9 to 10 and while debugging some mysterious access check errors I noticed webform/modules/webform_image_select/src/Controller/WebformImageSelectImagesController.php and webform/modules/webform_options_custom/src/Controller/WebformOptionsCustomController.php are missing a TRUE/FALSE. During my upgrade I used Upgrade Status, but somehow it didn't flag these accessChecks.
I am not sure this is a bug (so I marked this as a Task), but it seems to me these access checks should be explicitly set. I have attached a patch for webform_image_select and webform_options_custom.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3413542-empty-accesschecks-in--2.patch | 1.28 KB | caspervoogt |
| #2 | 3414542-accesschecks-missing-truefalse.patch | 1.39 KB | caspervoogt |
Issue fork webform-3413542
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
caspervoogt commentedComment #3
caspervoogt commentedI just noticed that src/Entity/Webform.php and src/EntityListBuilder/WebformEntityListBuilderSortLabelTrait.php also have empty accessChecks. I may make a patch for that one shortly.
Comment #4
caspervoogt commentedComment #5
caspervoogt commentedComment #6
jrockowitz commentedComment #9
jrockowitz commentedComment #12
jrockowitz commentedComment #13
jrockowitz commented