[Lada-commits] [PATCH 1 of 2] Always set statusEdit attribute for messung objects
Wald Commits
scm-commit at wald.intevation.org
Wed Apr 13 18:46:46 CEST 2016
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1460565958 -7200
# Node ID edb014e8045d624831f5f0fe5d4a68cb68f0aee6
# Parent e5a9c27047a4fb2eacff475588bdf46e3196776c
Always set statusEdit attribute for messung objects.
diff -r e5a9c27047a4 -r edb014e8045d src/main/java/de/intevation/lada/rest/MessungService.java
--- a/src/main/java/de/intevation/lada/rest/MessungService.java Wed Apr 13 17:37:12 2016 +0200
+++ b/src/main/java/de/intevation/lada/rest/MessungService.java Wed Apr 13 18:45:58 2016 +0200
@@ -202,6 +202,7 @@
if (id.equals(messungen.get(i).getId())) {
entry.put("readonly", messungen.get(i).isReadonly());
entry.put("owner", messungen.get(i).isOwner());
+ entry.put("statusEdit", messungen.get(i).getStatusEdit());
return;
}
}
diff -r e5a9c27047a4 -r edb014e8045d src/main/java/de/intevation/lada/util/auth/MessungAuthorizer.java
--- a/src/main/java/de/intevation/lada/util/auth/MessungAuthorizer.java Wed Apr 13 17:37:12 2016 +0200
+++ b/src/main/java/de/intevation/lada/util/auth/MessungAuthorizer.java Wed Apr 13 18:45:58 2016 +0200
@@ -85,6 +85,7 @@
!userInfo.getFunktionen().contains(3)) {
messung.setOwner(false);
messung.setReadonly(true);
+ messung.setStatusEdit(false);
return messung;
}
if (userInfo.belongsTo(probe.getMstId(), probe.getLaborMstId())) {
More information about the Lada-commits
mailing list