From 784206452ff2298d025d3c629544c6e2aa6d4a78 Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Thu, 10 Dec 2020 19:53:02 -0500 Subject: [PATCH] fix userApps population when user is template owner --- .../src/main/java/bubble/service/dbfilter/EntityIterator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bubble-server/src/main/java/bubble/service/dbfilter/EntityIterator.java b/bubble-server/src/main/java/bubble/service/dbfilter/EntityIterator.java index 7173255c..07e72083 100644 --- a/bubble-server/src/main/java/bubble/service/dbfilter/EntityIterator.java +++ b/bubble-server/src/main/java/bubble/service/dbfilter/EntityIterator.java @@ -226,7 +226,7 @@ public abstract class EntityIterator implements Iterator { 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));