Pārlūkot izejas kodu

lookup site/matcher specific to app

tags/v1.0.4
Jonathan Cobb pirms 4 gadiem
vecāks
revīzija
df37bf2b05
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      bubble-server/src/main/java/bubble/resources/app/DataResourceBase.java

+ 2
- 2
bubble-server/src/main/java/bubble/resources/app/DataResourceBase.java Parādīt failu

@@ -114,11 +114,11 @@ public abstract class DataResourceBase extends AccountOwnedTemplateResource<AppD
request.setDevice(device.getUuid());
}

final AppSite site = siteDAO.findByAccountAndId(caller.getUuid(), request.getSite());
final AppSite site = siteDAO.findByAccountAndAppAndId(caller.getUuid(), app.getUuid(), request.getSite());
if (site == null) throw notFoundEx(request.getSite());
request.setSite(site.getUuid());

final AppMatcher matcher = matcherDAO.findByAccountAndId(caller.getUuid(), request.getMatcher());
final AppMatcher matcher = matcherDAO.findByAccountAndAppAndId(caller.getUuid(), app.getUuid(), request.getMatcher());
if (matcher == null) throw notFoundEx(request.getMatcher());
request.setMatcher(matcher.getUuid());



Notiek ielāde…
Atcelt
Saglabāt