We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27ed671 + 548116a commit 55c229aCopy full SHA for 55c229a
ydb/core/mon/async_http_mon.cpp
@@ -356,13 +356,15 @@ class THttpMonLegacyActorRequest : public TActorBootstrapped<THttpMonLegacyActor
356
return ReplyErrorAndPassAway(result);
357
}
358
bool found = false;
359
- for (const TString& sid : ActorMonPage->AllowedSIDs) {
360
- if (result.UserToken->IsExist(sid)) {
361
- found = true;
362
- break;
+ if (result.UserToken) {
+ for (const TString& sid : ActorMonPage->AllowedSIDs) {
+ if (result.UserToken->IsExist(sid)) {
+ found = true;
363
+ break;
364
+ }
365
366
- if (found || ActorMonPage->AllowedSIDs.empty()) {
367
+ if (found || ActorMonPage->AllowedSIDs.empty() || !result.UserToken) {
368
SendRequest(&result);
369
} else {
370
return ReplyForbiddenAndPassAway("SID is not allowed");
0 commit comments