From 064001b4807c573cd124a5bda0d30e3f56fc3084 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@hostsharing.net>
Date: Fri, 20 May 2011 17:59:36 +0200
Subject: [PATCH] pac update unterbinden

---
 hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java b/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java
index 7177a4d..0eea9ea 100644
--- a/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java
+++ b/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java
@@ -10,6 +10,7 @@
 
 import de.hsadmin.core.model.AbstractEntity;
 import de.hsadmin.core.model.AbstractModuleImpl;
+import de.hsadmin.core.model.AuthorisationException;
 import de.hsadmin.core.model.HSAdminException;
 import de.hsadmin.core.util.TextUtil;
 import de.hsadmin.mods.cust.Contact;
@@ -97,5 +98,11 @@
 		admin.setUserId(nUID);
 		return super.add(newEntity);
 	}
+
+	@Override
+	public AbstractEntity update(AbstractEntity existingEntity)
+			throws HSAdminException {
+		throw new AuthorisationException(getLoginUser(), "update", existingEntity);
+	}
 	
 }

--
Gitblit v1.9.3