Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 806428b

Browse files
dragonpooludomikula
authored andcommittedMay 21, 2025·
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)
Please sign in to comment.