Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc504c7a

Browse files
committed
fix: return from authorization error
1 parentedea409 commitc504c7a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/framework/plugin/endpoint/PluginEndpointHandlerImpl.java‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ public Mono<ServerResponse> runPluginEndpointMethod(PluginEndpoint endpoint, End
132132
});
133133

134134
returndecisionMono.<EndpointResponse>handle((authorizationDecision,sink) -> {
135-
if(!authorizationDecision.isGranted())sink.error(newBizException(NOT_AUTHORIZED,"NOT_AUTHORIZED"));
135+
if(!authorizationDecision.isGranted()) {
136+
sink.error(newBizException(NOT_AUTHORIZED,"NOT_AUTHORIZED"));
137+
return;
138+
}
136139
try {
137140
sink.next((EndpointResponse)handler.invoke(endpoint,PluginServerRequest.fromServerRequest(request)));
138141
}catch (IllegalAccessException |InvocationTargetExceptione) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp