fix: Insufficient Permission for Leads > Dashboard Chart (#12243)
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
This commit is contained in:
parent
5461773259
commit
5c9cc655cf
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ def has_permission(doc, ptype, user):
|
|||
if doc.report_name in allowed_reports:
|
||||
return True
|
||||
else:
|
||||
allowed_doctypes = [frappe.permissions.get_doctypes_with_read()]
|
||||
allowed_doctypes = frappe.permissions.get_doctypes_with_read()
|
||||
if doc.document_type in allowed_doctypes:
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue