Open-source serverless enterprise CMS. Includes a headless CMS, page builder, form builder, and file manager. Easy to customize and expand. Deploys to AWS.
This PR ensures permissions are loaded right after the authentication, so that parallel code executions do not accidentally trigger multiple permission loads.
Authentication is executed in the BeforeHandler plugin, right after all the context plugins have been processed. This means that permissions will now also be loaded as part of the authentication process, and when any part of the code requests permissions, they will immediately be available.
Changes
This PR ensures permissions are loaded right after the authentication, so that parallel code executions do not accidentally trigger multiple permission loads.
Authentication is executed in the
BeforeHandler
plugin, right after all the context plugins have been processed. This means that permissions will now also be loaded as part of the authentication process, and when any part of the code requests permissions, they will immediately be available.