[Minor][Bug Fix] permission in workflow docs (#5449)

This commit is contained in:
KanchanChauhan 2018-04-17 11:59:38 +05:30 committed by Nabin Hait
parent 3de97c567b
commit 4d4c4e55fd

View file

@ -27,7 +27,7 @@ def get_transitions(doc, workflow = None):
if doc.is_new():
return []
frappe.has_permission(doc, 'read', throw=True)
frappe.has_permission(doc.doctype, 'read', throw=True)
roles = frappe.get_roles()
if not workflow: