[Lada-commits] [PATCH] Allow users with funktion 1 to edit status if statuswert = 4

Wald Commits scm-commit at wald.intevation.org
Thu Feb 4 17:29:25 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1454603372 -3600
# Node ID cbf6a15115dc63d64f43a670402a5706f447d396
# Parent  e701e2df6516bac8a2d1b6c9d1f09be79b5e7c88
Allow users with funktion 1 to edit status if statuswert = 4.

diff -r e701e2df6516 -r cbf6a15115dc src/main/java/de/intevation/lada/util/auth/MessungAuthorizer.java
--- a/src/main/java/de/intevation/lada/util/auth/MessungAuthorizer.java	Thu Feb 04 15:25:13 2016 +0100
+++ b/src/main/java/de/intevation/lada/util/auth/MessungAuthorizer.java	Thu Feb 04 17:29:32 2016 +0100
@@ -119,7 +119,7 @@
         }
         else if (userInfo.getFunktionen().contains(1) &&
             userInfo.getMessstellen().contains(probe.getMstId()) &&
-            status.getStatusStufe() <= 1
+            (status.getStatusStufe() <= 1 || status.getStatusWert() == 4)
         ) {
             statusEdit = true;
         }


More information about the Lada-commits mailing list