Skip to content

[6.x] Public dictionaries#15029

Open
duncanmcclean wants to merge 2 commits into
6.xfrom
public-dictionaries
Open

[6.x] Public dictionaries#15029
duncanmcclean wants to merge 2 commits into
6.xfrom
public-dictionaries

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request makes the dictionary fieldtype's route accessible outside of the Control Panel and to unauthenticated users.

Use case

In Forms Pro, we have an option to give each form its own page, which ultimately renders a PublishContainer on the frontend to unauthorized users.

The dictionary fieldtype uses an AJAX request on mount and when searching to fetch relevant options. However, as the dictionary fieldtype's route was in the /cp namespace, it was restricted to logged in users only.

This PR changes that (it's now open to guests) and adds authorization to ensure only specific dictionaries can be requested on the frontend.

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

Successfully merging this pull request may close these issues.

1 participant