Content-Length: 1578 | pFad | http://github.com/lowcoder-org/lowcoder/pull/1653.diff
thub.com
diff --git a/server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/usermanagement/OrganizationController.java b/server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/usermanagement/OrganizationController.java
index 00cc33779..bdf459d55 100644
--- a/server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/usermanagement/OrganizationController.java
+++ b/server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/usermanagement/OrganizationController.java
@@ -68,17 +68,7 @@ public Mono> getOrganizationByUser(@PathVariable String emai
.map(OrgView::new)
.cache();
} else {
- // Not SAAS: check if user exists and is a member of the org
- flux = userService.findByEmailDeep(email)
- .flatMapMany(user ->
- organizationService.getOrganizationInEnterpriseMode().flux()
- .flatMap(org ->
- orgMemberService.getOrgMember(org.getId(), user.getId())
- .filter(orgMember -> !orgMember.isInvalid())
- .map(__ -> new OrgView(org))
- )
- )
- .cache();
+ flux = organizationService.getOrganizationInEnterpriseMode().flux().map(OrgView::new).cache();
}
var newflux = flux.sort((OrgView o1, OrgView o2) -> {
if (o1.getOrgName() == null || o2.getOrgName() == null) {
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/lowcoder-org/lowcoder/pull/1653.diff
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy