File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -356,13 +356,15 @@ class THttpMonLegacyActorRequest : public TActorBootstrapped<THttpMonLegacyActor
356
356
return ReplyErrorAndPassAway (result);
357
357
}
358
358
bool found = false ;
359
- for (const TString& sid : ActorMonPage->AllowedSIDs ) {
360
- if (result.UserToken ->IsExist (sid)) {
361
- found = true ;
362
- break ;
359
+ if (result.UserToken ) {
360
+ for (const TString& sid : ActorMonPage->AllowedSIDs ) {
361
+ if (result.UserToken ->IsExist (sid)) {
362
+ found = true ;
363
+ break ;
364
+ }
363
365
}
364
366
}
365
- if (found || ActorMonPage->AllowedSIDs .empty ()) {
367
+ if (found || ActorMonPage->AllowedSIDs .empty () || !result. UserToken ) {
366
368
SendRequest (&result);
367
369
} else {
368
370
return ReplyForbiddenAndPassAway (" SID is not allowed" );
You can’t perform that action at this time.
0 commit comments