mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
Apply User Permissions optional in Script and Query Reports
This commit is contained in:
@@ -40,5 +40,5 @@ def get_permission_query_conditions():
|
||||
|
||||
return "(" + " or ".join(conditions) + ")"
|
||||
|
||||
def has_permission(doc):
|
||||
return frappe.has_permission(doc.doc_type, "read", doc.doc_name)
|
||||
def has_permission(doc, user):
|
||||
return frappe.has_permission(doc.doc_type, "read", doc.doc_name, user=user)
|
||||
|
||||
Reference in New Issue
Block a user