Mercurial > lada > lada-server
changeset 886:72df22ada23a
There is no way from LAND-Rückfrage to LST-*.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 15 Feb 2016 12:19:36 +0100 |
parents | e09c41d8eef3 |
children | 305f138982eb |
files | src/main/java/de/intevation/lada/util/auth/MessungAuthorizer.java |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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) &&