Merge "Add role-switching validation to Patrole framework."