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.

Issue fork webform-3413542

Command icon 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

caspervoogt created an issue. See original summary.

caspervoogt’s picture

Issue summary: View changes
StatusFileSize
new1.39 KB
caspervoogt’s picture

I 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.

caspervoogt’s picture

Title: accessChecks missing TRUE/FALSE in webform_image_select and webform_options_custom » empty accessChecks in webform_image_select, webform_options_custom, WebformEntityListBuilderSortLabelTrait.php
Issue summary: View changes
caspervoogt’s picture

StatusFileSize
new1.28 KB
jrockowitz’s picture

Status: Active » Reviewed & tested by the community

The last submitted patch, 2: 3414542-accesschecks-missing-truefalse.patch, failed testing. View results

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 5: 3413542-empty-accesschecks-in--2.patch, failed testing. View results

jrockowitz’s picture

Status: Needs work » Needs review

  • jrockowitz committed 1c2aeddc on 6.2.x
    Issue #3413542 by caspervoogt, jrockowitz: empty accessChecks in...
jrockowitz’s picture

Status: Needs review » Fixed
jrockowitz’s picture

Version: 6.2.2 » 6.2.x-dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.