How to allow users to use get doc to retrieve the User table in certain situations, as they usually do not have access to the User table, and successfully use these codes like :
user = frappe.get_doc(‘User’, guest_email)
user.set(‘block_modules’, )
user.set(‘roles’, )
Just like the effect of these codes, successfully modifying the sub doctype data?