Not Permitted doctype for not logged in user

I try to create the method and use @frappe.whitelist(allow_guest=True) for fetch data from doctype to show to unlogged in user but I always get prompt Not Permitted.Thank you.

@SoPhat_Vathana,

Can you share your code ?

Oh sorry, I am confused.The problem is from i try to use frappe.get_list in get_context method.So how can i use it in get_context method? thank you.

frappe.get_list checks the user permissions before fetching the results use the frappe.get_all method instead

working now Thank you so much.