[Minor][Bug Fix] permission in workflow docs (#5449)
This commit is contained in:
parent
3de97c567b
commit
4d4c4e55fd
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue