We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 946d29e commit 87bcab6Copy full SHA for 87bcab6
1 file changed
gateway/dataimpl/server_v1/xdcrserver.go
@@ -66,6 +66,9 @@ func (s *XdcrServer) GetClusterInfo(ctx context.Context, in *internal_xdcr_v1.Ge
66
OnBehalfOf: oboUser,
67
})
68
if err != nil {
69
+ if errors.Is(err, cbmgmtx.ErrAccessDenied) {
70
+ return nil, s.errorHandler.NewNoAuthStatus(ctx).Err()
71
+ }
72
return nil, s.errorHandler.NewGenericStatus(ctx, err).Err()
73
}
74
0 commit comments