https://www.growthbook.io/ logo
#announcements
Title
# announcements
a

agreeable-machine-575

12/02/2022, 10:58 AM
Hey all , I have been exploring Growthbook for couple of days , i have couple of questions that i didnt get answers for in the documentation that i read so far 1 : Is it some how also possible to send mutations of JS like css and html via code or visual editor ? 2: If i want to restrict production toggle to only some users can i do that ? Thank you in advance
f

future-teacher-7046

12/02/2022, 2:45 PM
1. You could in theory set a javascript string as the value of a feature and eval it on the client, but it's usually not the best idea from a security point of view. 2. Yes, if you give someone the
engineer
role, you can restrict access to specific environments. This does require a paid GrowthBook license though
👍 1
l

lemon-flower-28118

02/03/2023, 1:05 PM
Hey @future-teacher-7046 👋! Is there a way to inject JS through the visual editor or any other way without dev work?
f

future-teacher-7046

02/03/2023, 8:42 PM
No, that's not possible currently. You could in theory make a feature flag with JavaScript code as the value and eval it on the front end, but that can open up some pretty big security holes, so I wouldn't recommend it.
❤️ 1
17 Views