Issue Bug Closed

#106560File can still be selected via link despite IsFileSelectableEvent restriction

HOJA M A 04/11/25, 13:52 updated 12/02/25, 14:22

Description

Description:

  • Implemented IsFileSelectableEvent.
  • Calling $event->denyFileSelection(); correctly removes the + icon and checkboxes.
  • Clicking on the file name still selects the file, bypassing the intended restriction.

Steps to Reproduce:

  1. Implement IsFileSelectableEvent.
  2. Call $event->denyFileSelection(); on specific files.
  3. Open the file browser.
  4. Notice that checkboxes and + icons are removed, but clicking the file name still selects it.

clipboard-202504111551-dstqd.png

Expected Behavior:

Along with the checkbox and ‘+’ icon in the file list in the browser, the select behaviour when we click should not work. Clicking the file name should not select the file if IsFileSelectableEvent denies selection.

Actual Behavior:

Clicking the file name still selects the file.

Affected Versions:

TYPO3 12 and 13.

Reviews 4