anchor.diff:    SH_And_ID = get_helper_and_id(FileId, ProtocolVersion),
     case SH_And_ID of
       {Storage_helper_info, File} ->
  -      {PermsStatus, Perms} = storage_files_manager:check_perms(FileId, Storage_helper_info, read),
  +      {PermsStatus, Perms} = storage_files_manager:check_perms(File, Storage_helper_info, read),
         case PermsStatus of
           ok ->
             case Perms of
  
positive.code:   SH_And_ID = get_helper_and_id(FileId, ProtocolVersion),
    case SH_And_ID of
      {Storage_helper_info, File} ->
        {PermsStatus, Perms} = storage_files_manager:check_perms(FileId, Storage_helper_info),
        case PermsStatus of
          ok ->
            case Perms of
  
negative.code:   SH_And_ID = get_helper_and_id(FileId, ProtocolVersion),
    case SH_And_ID of
      {Storage_helper_info, File} ->
        {PermsStatus, Perms} = storage_files_manager:check_perms(File, Storage_helper_info),
        case PermsStatus of
          ok ->
            case Perms of
  