Logic in BootSubscriber is executed too early in the process

Created on 26 January 2022, almost 3 years ago
Updated 8 February 2023, almost 2 years ago

The request subscriber should properly check admin paths and user roles before executing the spam prevention checks:

Subscribing to the http_middleware is too soon as current_user service & request routing context is not fully loaded.

Replacing it with a regular request subscriber solves this issue.

🐛 Bug report
Status

Needs work

Version

9.1

Component

Code

Created by

🇧🇪Belgium bceyssens Genk 🇧🇪

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024