You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewUnauthorizedAccessException("The account you are trying to view is private. Contact the account owner and ask them to make their account public.");
85
+
if(accountRequested.Protected)
86
+
{
87
+
thrownewUnauthorizedAccessException("This account is protected and redacted. This might happens due to harassment or other reasons.");
88
+
}
89
+
else
90
+
{
91
+
thrownewUnauthorizedAccessException(
92
+
"The account you are trying to view is private. Contact the account owner and ask them to make their account public.");
93
+
}
84
94
}
85
95
}
86
96
}
@@ -348,13 +358,28 @@ public async Task<SearchResult> SearchReplays(List<SearchQueryItem> searchItems,
348
358
{
349
359
if(callerAccount==null||!callerAccount.IsAdmin)
350
360
{
351
-
thrownewUnauthorizedAccessException("The account you are trying to search for is private. Contact the account owner and ask them to make their account public.");
361
+
if(foundOocAccount.Protected)
362
+
{
363
+
thrownewUnauthorizedAccessException("This account is protected and redacted. This might happens due to harassment or other reasons.");
364
+
}
365
+
else
366
+
{
367
+
thrownewUnauthorizedAccessException("The account you are trying to search for is private. Contact the account owner and ask them to make their account public.");
thrownewUnauthorizedAccessException("The account you are trying to search for is private. Contact the account owner and ask them to make their account public.");
374
+
if(foundOocAccount.Protected)
375
+
{
376
+
thrownewUnauthorizedAccessException("This account is protected and redacted. This might happens due to harassment or other reasons.");
377
+
}
378
+
else
379
+
{
380
+
thrownewUnauthorizedAccessException(
381
+
"The account you are trying to search for is private. Contact the account owner and ask them to make their account public.");
382
+
}
358
383
}
359
384
}
360
385
@@ -375,16 +400,40 @@ public async Task<SearchResult> SearchReplays(List<SearchQueryItem> searchItems,
375
400
// if the requestor is not the found account and the requestor is not an admin, deny access
376
401
if(callerAccount==null||!callerAccount.IsAdmin)
377
402
{
378
-
thrownewUnauthorizedAccessException("The account you are trying to search for is private. Contact the account owner and ask them to make their account public.");
403
+
if(foundGuidAccount.Protected)
404
+
{
405
+
thrownewUnauthorizedAccessException("This account is protected and redacted. This might happens due to harassment or other reasons.");
406
+
}
407
+
else
408
+
{
409
+
thrownewUnauthorizedAccessException(
410
+
"The account you are trying to search for is private. Contact the account owner and ask them to make their account public.");
411
+
}
379
412
}
380
413
}
381
414
}else
382
415
{
383
-
thrownewUnauthorizedAccessException("The account you are trying to search for is private. Contact the account owner and ask them to make their account public.");
416
+
if(foundGuidAccount.Protected)
417
+
{
418
+
thrownewUnauthorizedAccessException("This account is protected and redacted. This might happens due to harassment or other reasons.");
419
+
}
420
+
else
421
+
{
422
+
thrownewUnauthorizedAccessException(
423
+
"The account you are trying to search for is private. Contact the account owner and ask them to make their account public.");
thrownewUnauthorizedAccessException("The account you are trying to search for is private. Contact the account owner and ask them to make their account public.");
428
+
if(foundGuidAccount.Protected)
429
+
{
430
+
thrownewUnauthorizedAccessException("This account is protected and redacted. This might happens due to harassment or other reasons.");
431
+
}
432
+
else
433
+
{
434
+
thrownewUnauthorizedAccessException(
435
+
"The account you are trying to search for is private. Contact the account owner and ask them to make their account public.");
0 commit comments