How to make the user who start new doc only him will can submit the doc after the loop

hi
i have a process of maintenance to be done in sequence as per the flow chart below so how can i make the user who create the maintenance request closed only in the flow chart

Include a condition for the transition/action something like frappe.session.user == doc.owner

1 Like

thank you very helpful

do you have any another condition or a list of them that may help me?

Hey mate,
Condition to help you in what exactly? What is the issue?

You can use hooks … in on_submit hook add a condition
if not frappe.session.user == doc.owner:
frappe.throw(“”)

Can do this as a server script or in custom app