From 0041a364fca2ba365fe19470f7fd50664a2085e4 Mon Sep 17 00:00:00 2001 From: ryanfkeepers Date: Wed, 28 Jun 2023 10:14:49 -0600 Subject: [PATCH] hotfix no sp license label catch in GetInfo --- src/pkg/services/m365/api/users.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/services/m365/api/users.go b/src/pkg/services/m365/api/users.go index 1f21384be..545ea519b 100644 --- a/src/pkg/services/m365/api/users.go +++ b/src/pkg/services/m365/api/users.go @@ -183,7 +183,7 @@ func (c Users) GetInfo(ctx context.Context, userID string) (*UserInfo, error) { // check whether the user is able to access their onedrive drive. // if they cannot, we can assume they are ineligible for onedrive backups. if _, err := c.GetDefaultDrive(ctx, userID); err != nil { - if !clues.HasLabel(err, graph.LabelsMysiteNotFound) || clues.HasLabel(err, graph.LabelsNoSharePointLicense) { + if !clues.HasLabel(err, graph.LabelsMysiteNotFound) && !clues.HasLabel(err, graph.LabelsNoSharePointLicense) { logger.CtxErr(ctx, err).Error("getting user's drive") return nil, graph.Wrap(ctx, err, "getting user's drive") }