changeset 875:9c5a5afb6708

Use updated messung to evaluate authorization attributes.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 11 Feb 2016 12:28:21 +0100
parents bf49eadf8dee
children c0883477db3f 501ccddaeaca
files src/main/java/de/intevation/lada/rest/MessungService.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/MessungService.java	Thu Feb 11 10:27:12 2016 +0100
+++ b/src/main/java/de/intevation/lada/rest/MessungService.java	Thu Feb 11 12:28:21 2016 +0100
@@ -254,10 +254,12 @@
         defaultRepo.create(status, "land");
         ret.setStatus(status.getId());
         defaultRepo.update(ret, "land");
+        Response updated=
+            defaultRepo.getById(LMessung.class, ret.getId(), "land");
 
         return authorization.filter(
             request,
-            created,
+            updated,
             LMessung.class);
     }
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)