Change prohibited check by allows.
Refactoring.