Get settings from javascript / client side


How can I get settings from a module (Selling Settings, HR Settings, etc) via javascript (client-side). I know I could use but it somehow has link with user permission so if I login with user that does not have role to access those settings and open related doctype (ex: Sales Invoice) the frappe call won’t run correctly.

Thank you.

Permission system is designed to work this way.

If a user doesn’t have access to a resource, it cant be fetched via also

Okay, I’ve already solved the problem here. Thank you.