anchor.diff:              version.package, version.version!);
         }
   
  -      // reject if package is blocked
  -      if (package != null && package!.isBlocked) {
  -        throw PackageRejectedException.isBlocked();
  -      }
  -
  -      // If the package exists, check for authorization
  -      if (package != null) {
  -        await _checkUploadAuthorization(agent, package!, newVersion.version!);
  -      }
  -
         // If the package does not exist, then we create a new package.
         if (package == null) {
           _logger.info('New package uploaded. [new-package-uploaded]');
           package = Package.fromVersion(newVersion);
  -      }
  -
  -      if (package!.isNotVisible) {
  -        throw PackageRejectedException.isBlocked();
         }
   
         if (package!.versionCount >= maxVersionsPerPackage) {
  
positive.code:     ]);
    }
  
    Future<void> _checkUploadAuthorization(
        AuthenticatedAgent agent, Package package, String newVersion) async {
      if (agent is AuthenticatedUser &&
          await packageBackend.isPackageAdmin(package, agent.user.userId)) {
        return;
  
negative.code:     final sw = Stopwatch()..start();
      final newVersion = entities.packageVersion;
      final currentDartSdk = await getDartSdkVersion();
      final existingPackage = await lookupPackage(newVersion.package);
  
      // check authorizations before the transaction
      await _requireUploadAuthorization(
          agent, existingPackage, newVersion.version!);
  
      // query admin notification emails before the transaction
      List<String> uploaderEmails;
      if (existingPackage == null) {
        if (agent is AuthenticatedUser) {
          uploaderEmails = [agent.email!];
        } else {
          // won't happen as upload authorization check throws earlier
          uploaderEmails = [];
        }
      } else {
        uploaderEmails =
  