fix: Use can_read API

This commit is contained in:
Suraj Shetty 2019-06-20 18:00:19 +05:30
parent da629810ad
commit b663966c68

View File

@ -65,7 +65,7 @@ $.extend(erpnext, {
},
get_dimension_filters: async function() {
if (!frappe.boot.user.can_read.includes('Accounting Dimension')) {
if (!frappe.model.can_read('Accounting Dimension')) {
return
}
let dimensions = await frappe.db.get_list('Accounting Dimension', {