Skip to content

Commit 87bcab6

Browse files
committed
ING-1499: Map cbmgmt access denied err to appropriate status
1 parent 946d29e commit 87bcab6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

gateway/dataimpl/server_v1/xdcrserver.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ func (s *XdcrServer) GetClusterInfo(ctx context.Context, in *internal_xdcr_v1.Ge
6666
OnBehalfOf: oboUser,
6767
})
6868
if err != nil {
69+
if errors.Is(err, cbmgmtx.ErrAccessDenied) {
70+
return nil, s.errorHandler.NewNoAuthStatus(ctx).Err()
71+
}
6972
return nil, s.errorHandler.NewGenericStatus(ctx, err).Err()
7073
}
7174

0 commit comments

Comments
 (0)