changeset 234:0d545e6d1885

Return LProbe objects with "fertig" flag = true.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 05 Jul 2013 14:58:39 +0200
parents b619f6552f55
children 01148d036b9b
files src/main/java/de/intevation/lada/rest/LProbeService.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/LProbeService.java	Fri Jul 05 14:55:59 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/LProbeService.java	Fri Jul 05 14:58:39 2013 +0200
@@ -92,11 +92,11 @@
             }
             String nbId = probe.get(0).getNetzbetreiberId();
             String mstId = probe.get(0).getMstId();
-            if (auth.getNetzbetreiber().contains(nbId)) {
+            if (auth.getNetzbetreiber().contains(nbId) ||
+                probe.get(0).getFertig()) {
                 if (auth.getMst().contains(mstId)) {
                     return response;
                 }
-                response.setReadonly(true);
                 return response;
             }
             return new Response(false, 698, new ArrayList<LProbe>());
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)