[Lada-commits] [PATCH] Use owner to set the RO status for the messung edit window

Wald Commits scm-commit at wald.intevation.org
Thu Feb 18 11:48:44 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1455792521 -3600
# Node ID 5ed859241fc9ccc228edf4bddca2d63937a2a1bd
# Parent  479782c96efaa6b6ba003d01fe2283b76d59068e
Use owner to set the RO status for the messung edit window.

diff -r 479782c96efa -r 5ed859241fc9 app/view/window/MessungEdit.js
--- 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 {


More information about the Lada-commits mailing list