changeset 1036:5ed859241fc9

Use owner to set the RO status for the messung edit window.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 18 Feb 2016 11:48:41 +0100
parents 479782c96efa
children 56922c5c21fd
files app/view/window/MessungEdit.js
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/window/MessungEdit.js	Thu Feb 18 11:21:42 2016 +0100
+++ b/app/view/window/MessungEdit.js	Thu Feb 18 11:48:41 2016 +0100
@@ -165,7 +165,8 @@
                 if (json) {
                     this.setMessages(json.errors, json.warnings);
                 }
-                if (this.record.get('readonly') === true) {
+                if (this.record.get('readonly') === true ||
+                    this.record.get('owner') === false) {
                     this.disableForm();
                 }
                 else {

http://lada.wald.intevation.org