From 950ebee55333001d9b12838007f237248258b751 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@jalin.de>
Date: Tue, 19 Feb 2013 16:36:09 +0100
Subject: [PATCH] Write permission to be checked against data base (not against the intended update)

---
 hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java b/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java
index 245a1b3..4fbdf54 100644
--- a/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java
+++ b/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java
@@ -193,7 +193,7 @@
 				opt.setId(((DomainOption) list.get(0)).getId());
 			}
 		}
-		needsWriteAccessOn(existingEntity, "update");
+		needsWriteAccessOn(oldDom, "update");
 		return super.update(existingEntity);
 	}
 

--
Gitblit v1.9.0-SNAPSHOT