Moved the check for PZ_ALLOW