We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa5a493 commit 4e979bbCopy full SHA for 4e979bb
ydb/core/mon/async_http_mon.cpp
@@ -373,13 +373,15 @@ class THttpMonLegacyActorRequest : public TActorBootstrapped<THttpMonLegacyActor
373
return ReplyErrorAndPassAway(result);
374
}
375
bool found = false;
376
- for (const TString& sid : ActorMonPage->AllowedSIDs) {
377
- if (result.UserToken->IsExist(sid)) {
378
- found = true;
379
- break;
+ if (result.UserToken) {
+ for (const TString& sid : ActorMonPage->AllowedSIDs) {
+ if (result.UserToken->IsExist(sid)) {
+ found = true;
380
+ break;
381
+ }
382
383
- if (found || ActorMonPage->AllowedSIDs.empty()) {
384
+ if (found || ActorMonPage->AllowedSIDs.empty() || !result.UserToken) {
385
SendRequest(&result);
386
} else {
387
return ReplyForbiddenAndPassAway("SID is not allowed");
0 commit comments