Review main Merged

73367[TASK] Add BackendModuleValidator PSR-15 middleware

Oli Bartsch CR +2 V +2 Hard +348 −164 updated 02/09/22, 08:14

Commit message

Since introduction of the new module registration API (#96733),
the TYPO3 backend route object might contain a Module object
as "module" option.

This option was then previously used in the RouteDispatcher to
check, whether the current user has necessary access permissions
for this module.

However, the RouteDispatcher should not handle such validation
tasks, but only dispatch to the defined target.

Therefore, validation of the module access permissions, as well
as further checks (e.g. for a given page id) are now moved into
a dedicated PSR-15 middleware.

To further improve the new API, the middleware also adds the
module as attribute to the request.

Additionally, the now obsolete "moduleName" route option is
removed. It is always the same as the module identifier and
can therefore be fetched via the object.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 2

Files 17