Implemented check for allow_public in download