Skip to content

Commit

Permalink
Merge 229ba01 into aa5a493
Browse files Browse the repository at this point in the history
  • Loading branch information
UgnineSirdis authored Aug 15, 2024
2 parents aa5a493 + 229ba01 commit b623341
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ydb/core/mon/async_http_mon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,13 +373,15 @@ class THttpMonLegacyActorRequest : public TActorBootstrapped<THttpMonLegacyActor
return ReplyErrorAndPassAway(result);
}
bool found = false;
for (const TString& sid : ActorMonPage->AllowedSIDs) {
if (result.UserToken->IsExist(sid)) {
found = true;
break;
if (result.UserToken) {
for (const TString& sid : ActorMonPage->AllowedSIDs) {
if (result.UserToken->IsExist(sid)) {
found = true;
break;
}
}
}
if (found || ActorMonPage->AllowedSIDs.empty()) {
if (found || ActorMonPage->AllowedSIDs.empty() || !result.UserToken) {
SendRequest(&result);
} else {
return ReplyForbiddenAndPassAway("SID is not allowed");
Expand Down

0 comments on commit b623341

Please sign in to comment.