[Lada-commits] [PATCH] There is no way from LAND-Rückfrage to LST-*
Wald Commits
scm-commit at wald.intevation.org
Mon Feb 15 12:20:35 CET 2016
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1455535176 -3600
# Node ID 72df22ada23ad808474fcae2bcd8042e803652f8
# Parent e09c41d8eef30759ea47ff43a658c2a1a14055d2
There is no way from LAND-Rückfrage to LST-*.
diff -r e09c41d8eef3 -r 72df22ada23a src/main/java/de/intevation/lada/util/auth/MessungAuthorizer.java
--- a/src/main/java/de/intevation/lada/util/auth/MessungAuthorizer.java Mon Feb 15 12:01:54 2016 +0100
+++ b/src/main/java/de/intevation/lada/util/auth/MessungAuthorizer.java Mon Feb 15 12:19:36 2016 +0100
@@ -107,8 +107,11 @@
List<AuthLstUmw> lsts =
repository.filterPlain(lstFilter.getQuery(), "stamm");
for (int i = 0; i < lsts.size(); i++) {
- if (lsts.get(i).getUmwId().equals(probe.getUmwId()) &&
- status.getStatusStufe() == 2 || status.getStatusStufe() == 3) {
+ if (lsts.get(i).getUmwId().equals(probe.getUmwId())
+ && status.getStatusStufe() == 2
+ && status.getStatusWert() != 4
+ || status.getStatusStufe() == 3
+ ) {
statusEdit = true;
}
}
@@ -116,7 +119,8 @@
else if (userInfo.getFunktionen().contains(2) &&
userInfo.getNetzbetreiber().contains(probe.getNetzbetreiberId()) &&
(status.getStatusStufe() == 1 || status.getStatusStufe() == 2) &&
- status.getStatusWert() >= 1) {
+ status.getStatusWert() >= 1
+ ) {
statusEdit = true;
}
else if (userInfo.getFunktionen().contains(1) &&
More information about the Lada-commits
mailing list