@@ -373,7 +373,7 @@ func (db *DatabaseCollectionWithUser) getRev(ctx context.Context, docid, revid s
373373 return revision , nil
374374}
375375
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 ) {
377377 if cv != nil {
378378 revision , err = db .revisionCache .GetWithCV (ctx , docid , cv , includeBody , RevCacheOmitDelta )
379379 } else {
@@ -386,7 +386,7 @@ func (db *DatabaseCollectionWithUser) GetCV(ctx context.Context, docid string, c
386386
387387 if revision .BodyBytes == nil {
388388 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 ))
390390 return DocumentRevision {}, ErrForbidden
391391 }
392392 return DocumentRevision {}, ErrMissing
@@ -401,7 +401,7 @@ func (db *DatabaseCollectionWithUser) GetCV(ctx context.Context, docid string, c
401401 return DocumentRevision {}, ErrForbidden
402402 }
403403 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 ))
405405 return DocumentRevision {}, ErrForbidden
406406 }
407407 return redactedRevision , nil
@@ -533,7 +533,7 @@ func (db *DatabaseCollectionWithUser) GetDelta(ctx context.Context, docID, fromR
533533 return nil , nil , nil
534534}
535535
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 ) {
537537
538538 if col .user != nil {
539539 if err := col .user .AuthorizeAnyCollectionChannel (col .ScopeName , col .Name , channels ); err != nil {
0 commit comments