commit | b663966c6821beafa2c77db24c245538f814aed7 | [log] [tgz] |
---|---|---|
author | Suraj Shetty <surajshetty3416@gmail.com> | Thu Jun 20 18:00:19 2019 +0530 |
committer | Suraj Shetty <surajshetty3416@gmail.com> | Thu Jun 20 18:00:19 2019 +0530 |
tree | 5644b8a6a7e736e395e4d668af5049212ae73907 | |
parent | da629810ad129fbde879de8190b6bdb3511ec20e [diff] |
fix: Use can_read API
diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index 86fa70d..dcc15fb 100755 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js
@@ -65,7 +65,7 @@ }, 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', {