in .py file: @frappe.whitelist()
if not user:
user = frappe.session.user
if “System Manager” in frappe.get_roles(user):
elif “role” in frappe.get_roles(user):
l = (“”" ‘tabTable Name’.owner= ‘%s’ “”" % (user))
No we have only this way or maybe developers do something new in User Permissions?
If not can you give more information where should I insert your code? I am newby in that, hope for understanding.