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

This reverts commit 4d4c4e55fd.
This commit is contained in:
Nabin Hait 2018-04-17 12:50:10 +05:30 committed by GitHub
parent 4d4c4e55fd
commit 5c824c1ee0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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