in .py file: @frappe.whitelist()
def get_permission_query_conditions(user):
if not user:
user = frappe.session.user
if “System Manager” in frappe.get_roles(user):
return None
elif “role” in frappe.get_roles(user):
l = (“”" ‘tabTable Name’.owner= ‘%s’ “”" % (user))
return l
Hello.
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.