How can I populate a host field based on a user's role ? #255
-
Hello ! My use case is relatively simple : host groups should only be available to people with the right "role" in ansibleforms. Is there maybe some other way to do that ? Otherwise I will build a custom verison of the app, no worries ! Example of what I'd like to do roughly :
Thanks for the great tool ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Add runLocal: true |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
another PS : if you really want this handled in the backend, you can mount your own custom.js with custom backend scripts.
map it in docker compose or equivalent
note the ./data/functions/custom.js mapping. It will allow you to write your own backend expressions.
You need to address them in the form as "fnc.myfunction()"