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