Closed (fixed)
Project:
Storybook
Version:
1.0.0-beta1
Component:
Storybook
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
29 Mar 2024 at 15:33 UTC
Updated:
9 May 2024 at 16:24 UTC
Jump to comment: Most recent
The storybook.render_story route checks access for the 'render storybook stories' permission. Since 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.
Allow access per default when in development mode.
When in development mode, access is automatically granted for the storybook.render_story route
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
raywalters commentedComment #4
agentrickardWe were using this patch with CL_SERVER and really like it because it doesn't require config_split to separate permissions on the local or development server, which increases module security.
With this patch, you can still choose to use the permission, but do not need to configure it for local development.
Comment #5
hydra commented+1, thx @raywalters for taking this over here.
Comment #6
e0ipsoI think this looks good!
Comment #8
e0ipsoMerged and released. Something went sour with the commit credit :-(