Mercurial > lada > lada-server
changeset 920:edb014e8045d
Always set statusEdit attribute for messung objects.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 13 Apr 2016 18:45:58 +0200 |
parents | e5a9c27047a4 |
children | 83a7ef8d4f69 |
files | src/main/java/de/intevation/lada/rest/MessungService.java src/main/java/de/intevation/lada/util/auth/MessungAuthorizer.java |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; } }
--- 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())) {