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