changeset 895:0a69252ed7a0

Fixed IAE on messung create.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 11 Mar 2016 14:00:10 +0100
parents f5b4784d9173
children c94a07959060
files src/main/java/de/intevation/lada/util/auth/MessungAuthorizer.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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(),
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)