Merge pull request #28135 from deepeshgarg007/accounting_dimension_userperm

fix: Accounting Dimension filters not honouring user permissions
This commit is contained in:
Deepesh Garg 2021-10-29 14:39:58 +05:30 committed by GitHub
commit 7180d76b36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -566,7 +566,7 @@ def get_filtered_dimensions(doctype, txt, searchfield, start, page_len, filters)
query_filters.append(['name', query_selector, dimensions])
output = frappe.get_all(doctype, filters=query_filters)
output = frappe.get_list(doctype, filters=query_filters)
result = [d.name for d in output]
return [(d,) for d in set(result)]