[Lada-commits] [PATCH] Use updated messung to evaluate authorization attributes

Wald Commits scm-commit at wald.intevation.org
Thu Feb 11 12:28:10 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1455190101 -3600
# Node ID 9c5a5afb6708df0636c3eb04a9f77430a25f4923
# Parent  bf49eadf8dee0abbfbfdee1db6bcea1b195bea69
Use updated messung to evaluate authorization attributes.

diff -r bf49eadf8dee -r 9c5a5afb6708 src/main/java/de/intevation/lada/rest/MessungService.java
--- 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);
     }
 


More information about the Lada-commits mailing list