Problem/Motivation
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.
Proposed resolution
Allow access per default when in development mode.
Data model changes
When in development mode, access is automatically granted for the storybook.render_story route
Issue fork storybook-3437025
Show commands
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 :-(