Added checks for require_action_allowed being called for post/put/delete.