You seem to be doing the work of testing every single enum even if the level is `allow`, and you only check to see if it's actually `allow` down on line 1587. You should make sure it's not allow right here.