pass result of scope checking to dialog middleware