瀏覽代碼

fix userApps population when user is template owner

tags/v1.5.4
Jonathan Cobb 3 年之前
父節點
當前提交
784206452f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      bubble-server/src/main/java/bubble/service/dbfilter/EntityIterator.java

+ 1
- 1
bubble-server/src/main/java/bubble/service/dbfilter/EntityIterator.java 查看文件

@@ -226,7 +226,7 @@ public abstract class EntityIterator implements Iterator<Identifiable> {
for (Identifiable e : entities) {
final BubblePlanApp systemPlanApp = (BubblePlanApp) e;
final BubbleApp userApp = userApps.stream()
.filter(app -> app.getTemplateApp().equals(systemPlanApp.getApp()))
.filter(app -> app.getTemplateAppOrSelf().equals(systemPlanApp.getApp()))
.findFirst().orElse(null);
if (userApp == null) {
if (log.isInfoEnabled()) log.info("addEntities: system BubblePlanApp " + systemPlanApp.getUuid() + ": no matching BubbleApp found in userApps (not adding): " + names(userApps));


Loading…
取消
儲存