Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access permission #210

Open
tm-kn opened this issue Feb 7, 2023 · 0 comments
Open

Access permission #210

tm-kn opened this issue Feb 7, 2023 · 0 comments

Comments

@tm-kn
Copy link
Member

tm-kn commented Feb 7, 2023

Is your proposal related to a problem?

I want to make this live on production for a certain group of users.

I know that the pattern library can affect the site it's on because you can execute Python from templates so it's a security risk. Documentation could state that and this could be an opt-in only.

Describe the solution you'd like

  • Create a custom Django permission to restrict who can see the pattern library as part of the package.
  • Add Wagtail hooks for permission and maybe a Wagtail menu item for the pattern library as well. Probably a separate issue but would follow from this as we'd first want to restrict access.

Describe alternatives you've considered

  • Creating a permission decorator in my own project and guarding the URL paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant