fix: Use can_read API
This commit is contained in:
parent
da629810ad
commit
b663966c68
@ -65,7 +65,7 @@ $.extend(erpnext, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
get_dimension_filters: async function() {
|
get_dimension_filters: async function() {
|
||||||
if (!frappe.boot.user.can_read.includes('Accounting Dimension')) {
|
if (!frappe.model.can_read('Accounting Dimension')) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let dimensions = await frappe.db.get_list('Accounting Dimension', {
|
let dimensions = await frappe.db.get_list('Accounting Dimension', {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user