@@ -373,7 +373,7 @@ func (db *DatabaseCollectionWithUser) getRev(ctx context.Context, docid, revid s
373
373
return revision , nil
374
374
}
375
375
376
- func (db * DatabaseCollectionWithUser ) GetCV (ctx context.Context , docid string , cv * SourceAndVersion , includeBody bool ) (revision DocumentRevision , err error ) {
376
+ func (db * DatabaseCollectionWithUser ) GetCV (ctx context.Context , docid string , cv * Version , includeBody bool ) (revision DocumentRevision , err error ) {
377
377
if cv != nil {
378
378
revision , err = db .revisionCache .GetWithCV (ctx , docid , cv , includeBody , RevCacheOmitDelta )
379
379
} else {
@@ -386,7 +386,7 @@ func (db *DatabaseCollectionWithUser) GetCV(ctx context.Context, docid string, c
386
386
387
387
if revision .BodyBytes == nil {
388
388
if db .ForceAPIForbiddenErrors () {
389
- base .InfofCtx (ctx , base .KeyCRUD , "Doc: %s %s:%s is missing" , base .UD (docid ), base .MD (cv .SourceID ), base .MD (cv .Version ))
389
+ base .InfofCtx (ctx , base .KeyCRUD , "Doc: %s %s:%s is missing" , base .UD (docid ), base .MD (cv .SourceID ), base .MD (cv .Value ))
390
390
return DocumentRevision {}, ErrForbidden
391
391
}
392
392
return DocumentRevision {}, ErrMissing
@@ -401,7 +401,7 @@ func (db *DatabaseCollectionWithUser) GetCV(ctx context.Context, docid string, c
401
401
return DocumentRevision {}, ErrForbidden
402
402
}
403
403
if db .ForceAPIForbiddenErrors () {
404
- base .InfofCtx (ctx , base .KeyCRUD , "Not authorized to view doc: %s %s:%s" , base .UD (docid ), base .MD (cv .SourceID ), base .MD (cv .Version ))
404
+ base .InfofCtx (ctx , base .KeyCRUD , "Not authorized to view doc: %s %s:%s" , base .UD (docid ), base .MD (cv .SourceID ), base .MD (cv .Value ))
405
405
return DocumentRevision {}, ErrForbidden
406
406
}
407
407
return redactedRevision , nil
@@ -533,7 +533,7 @@ func (db *DatabaseCollectionWithUser) GetDelta(ctx context.Context, docID, fromR
533
533
return nil , nil , nil
534
534
}
535
535
536
- func (col * DatabaseCollectionWithUser ) authorizeUserForChannels (docID , revID string , cv * SourceAndVersion , channels base.Set , isDeleted bool , history Revisions ) (isAuthorized bool , redactedRev DocumentRevision ) {
536
+ func (col * DatabaseCollectionWithUser ) authorizeUserForChannels (docID , revID string , cv * Version , channels base.Set , isDeleted bool , history Revisions ) (isAuthorized bool , redactedRev DocumentRevision ) {
537
537
538
538
if col .user != nil {
539
539
if err := col .user .AuthorizeAnyCollectionChannel (col .ScopeName , col .Name , channels ); err != nil {
0 commit comments