[cleanup] Maintenance Schedule, Maintenance Visit

This commit is contained in:
Rushabh Mehta
2013-07-10 13:06:14 +05:30
parent f9404ba89f
commit 919b9fcccf
11 changed files with 195 additions and 303 deletions

View File

@@ -177,7 +177,7 @@ class DocType(TransactionBase):
@webnotes.whitelist()
def get_dashboard_info(customer):
if not webnotes.has_permission("Customer", customer):
if not webnotes.has_permission("Customer", "read", customer):
webnotes.msgprint("No Permission", raise_exception=True)
out = {}