Fixes workflow permission checks on doTransition.