Allow access to the render route when in development mode

Created on 19 February 2024, 9 months ago
Updated 25 April 2024, 7 months ago

Problem/Motivation

The cl_server.render route checks access for the 'use cl server' permission. Since the storybook calls this route as an anonymous user, it's necessary to give this permission to anonymous users. When using this only for development, its inconvenient to always re-set this permission after config-import. I did not managed to configure this permission in config_split, without having diffs on every config-export.

Proposed resolution

Allow access per default when in development mode. Since it's recommended to disable development mode for production I think this might be a convenient enhancement for developers. I first thought of a setting which could be set in settings.local.php but adding the flag as a service parameter and a setting feels kinda awkward.

Data model changes

When in development mode, access is automatically granted for the cl_server.render route.

✨ Feature request
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Hydra

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024