Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Can edit a search setting controlled by an environment setting #1073

Closed
edalzell opened this issue Oct 27, 2016 · 2 comments
Closed

Can edit a search setting controlled by an environment setting #1073

edalzell opened this issue Oct 27, 2016 · 2 comments

Comments

@edalzell
Copy link

Expected behaviour

Field can't be edited

Actual behaviour

Field can be edited

Steps to reproduce

  1. Use Algolia & set your default index to something (I have live)
  2. Set it to something else in your local environment (I have dev)
  3. Go edit it.

Server configuration

Statamic version:
2.1.17

@edalzell
Copy link
Author

edalzell commented Nov 10, 2016

Another side effect, if you have something like "{env:ALGOLIA_API_KEY}" in your search.yaml file, when you save the settings, that is overwritten w/ the actual key.

@curtisblackwell
Copy link

I see this same problem with the debug toggle in the CP settings. I have an env var set for it and I can still change it in the CP.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants