Add error message when --allow... and --disallow... flags are passed

[finishes #69740612]