Skip to content

Commit 806428b

Browse files
dragonpooludomikula
authored andcommitted
Remove superadmin from deletion of all org members and group members
1 parent 3ad5240 commit 806428b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/api-service/lowcoder-infra/src/main/java/org/lowcoder/infra/birelation/BiRelationServiceImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public Mono<Boolean> removeAllBiRelations(BiRelationBizType bizType, String sour
132132
Query query = new Query();
133133
query.addCriteria(where(BIZ_TYPE).is(bizType));
134134
query.addCriteria(where(SOURCE_ID).is(sourceId));
135+
query.addCriteria(where(RELATION).is("super_admin").not());
135136
return mongoUpsertHelper.remove(query, BiRelation.class);
136137
}
137138

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