Skip to content

Commit efd6dbe

Browse files
committed
Revert the validation that stops unpiblished apps to be viewed
1 parent c6a207a commit efd6dbe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/application/ApplicationApiService.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ private Mono<Void> checkApplicationStatus(Application application, ApplicationSt
249249
}
250250

251251
private Mono<Void> checkApplicationViewRequest(Application application, ApplicationEndpoints.ApplicationRequestType expected) {
252-
if (expected == ApplicationEndpoints.ApplicationRequestType.PUBLIC_TO_ALL && application.isPublicToAll()) {
252+
// TODO: The check is correct ( logically ) but we need to provide some time for the users to adapt. Will bring it back in the next release
253+
if (expected == ApplicationEndpoints.ApplicationRequestType.PUBLIC_TO_ALL /* && application.isPublicToAll() */) {
253254
return Mono.empty();
254255
}
255256
if (expected == ApplicationEndpoints.ApplicationRequestType.PUBLIC_TO_MARKETPLACE && application.isPublicToMarketplace()) {

0 commit comments

Comments
 (0)