ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Get settings from javascript / client side


#1

Hello,

How can I get settings from a module (Selling Settings, HR Settings, etc) via javascript (client-side). I know I could use frappe.call 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.


#2

Permission system is designed to work this way.

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


#3

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


#4