Should not error out on "My site not found" (#3469)
This code should not error out on `Unable to retrieve user's mysite URL`. --- #### Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No #### Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [x] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Supportability/Tests - [ ] 💻 CI/Deployment - [ ] 🧹 Tech Debt/Cleanup #### Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * #<issue> #### Test Plan <!-- How will this be tested prior to merging.--> - [x] 💪 Manual - [x] ⚡ Unit test - [x] 💚 E2E
This commit is contained in:
parent
dfbf8f341a
commit
11752d869c
@ -121,7 +121,8 @@ func UserHasDrives(ctx context.Context, acct account.Account, userID string) (bo
|
||||
}
|
||||
|
||||
if !graph.IsErrExchangeMailFolderNotFound(err) ||
|
||||
clues.HasLabel(err, graph.LabelStatus(http.StatusNotFound)) {
|
||||
clues.HasLabel(err, graph.LabelStatus(http.StatusNotFound)) ||
|
||||
clues.HasLabel(err, graph.LabelsMysiteNotFound) {
|
||||
return false, err
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user