I want to restrict user form access the docs that its not in its workflow

I have doctype have more than one workflow based on the field select “type”
example
workflow 1:
A->B->C->D
workflow2:
D->B->E
I did the 2 workflows based on the conditions in the Transition Rules table
now I want the E user not to see the doc in Workflow 1 see the doc in Workflow 2