remove unconfigured scope bypass
This commit is contained in:
@@ -141,8 +141,8 @@ public class SelectAiService {
|
||||
if (requestedKey.isEmpty()) {
|
||||
return new ResolvedExecutionScope(originalPrompt, null, null);
|
||||
}
|
||||
if (gameScopeService == null || !gameScopeService.configured()) {
|
||||
return new ResolvedExecutionScope(originalPrompt, requestedKey, null);
|
||||
if (gameScopeService == null) {
|
||||
throw new AppException("게임 범위 검증 서비스를 사용할 수 없습니다.");
|
||||
}
|
||||
GameScopeService.GameScope scope = gameScopeService.resolve(bearerToken, originalPrompt).scopes().stream()
|
||||
.filter(item -> requestedKey.equals(item.gameKey()))
|
||||
|
||||
Reference in New Issue
Block a user