Skip to content

Commit c4e8bb6

Browse files
committed
Fixed organization error in enterprise mode
1 parent d82fa15 commit c4e8bb6

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/usermanagement/OrganizationController.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,7 @@ public Mono<PageResponseView<?>> getOrganizationByUser(@PathVariable String emai
6868
.map(OrgView::new)
6969
.cache();
7070
} else {
71-
// Not SAAS: check if user exists and is a member of the org
72-
flux = userService.findByEmailDeep(email)
73-
.flatMapMany(user ->
74-
organizationService.getOrganizationInEnterpriseMode().flux()
75-
.flatMap(org ->
76-
orgMemberService.getOrgMember(org.getId(), user.getId())
77-
.filter(orgMember -> !orgMember.isInvalid())
78-
.map(__ -> new OrgView(org))
79-
)
80-
)
81-
.cache();
71+
flux = organizationService.getOrganizationInEnterpriseMode().flux().map(OrgView::new).cache();
8272
}
8373
var newflux = flux.sort((OrgView o1, OrgView o2) -> {
8474
if (o1.getOrgName() == null || o2.getOrgName() == null) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy