Revert "Fix strange bug with allow method"

This reverts commit 1cddc9f28367bf1d903315b2af65c455dd8d43c7.