added page permissions, modified report listing links
diff --git a/public/js/modules.js b/public/js/modules.js
index 9b554e9..772a561 100644
--- a/public/js/modules.js
+++ b/public/js/modules.js
@@ -170,7 +170,8 @@
parent: $parent2,
method: 'utilities.get_report_list',
render_row: function(row, data) {
- $(row).html(repl('<a href="#!Report2/%(ref_doctype)s/%(name)s" \
+ data.report_type = data.is_query_report ? "query-report" : "Report2"
+ $(row).html(repl('<a href="#!%(report_type)s/%(ref_doctype)s/%(name)s" \
data-doctype="%(ref_doctype)s">\
%(name)s</a>', data))
},