[Lada-commits] [PATCH 2 of 2] Fixed IAE on messung create

Wald Commits scm-commit at wald.intevation.org
Fri Mar 11 14:00:14 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1457701210 -3600
# Node ID 0a69252ed7a0552e97c3381d3d2b65ab76230c3f
# Parent  f5b4784d91737eebe4ec11f4f030733f64d98b9b
Fixed IAE on messung create.

diff -r f5b4784d9173 -r 0a69252ed7a0 src/main/java/de/intevation/lada/util/auth/MessungAuthorizer.java
--- a/src/main/java/de/intevation/lada/util/auth/MessungAuthorizer.java	Fri Mar 11 13:59:16 2016 +0100
+++ b/src/main/java/de/intevation/lada/util/auth/MessungAuthorizer.java	Fri Mar 11 14:00:10 2016 +0100
@@ -36,6 +36,9 @@
             return !this.isMessungReadOnly(messung.getId()) &&
                 getAuthorization(userInfo, probe);
         }
+        if (method == RequestMethod.POST) {
+            return getAuthorization(userInfo, probe);
+        }
         LStatusProtokoll status = repository.getByIdPlain(
             LStatusProtokoll.class,
             messung.getStatus(),


More information about the Lada-commits mailing list