I may be going around this the wrong way, but in a custom coffeescript I have some code which requests organization data via:
App.Organization.find(@ticket.organization_id)
This works perfectly when I am logged in as an admin, but the second I switch to a user, it returns a lot less information (I assume for security reasons), which sadly means any custom fields added to the organization object are also not available.
Is it possible to use this (or a different query) to get custom fields passed through to my coffee script? Is there another file I just need to declare or pass the variables through?
Thanks for your time,
Dan