From 064001b4807c573cd124a5bda0d30e3f56fc3084 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Fri, 20 May 2011 15:59:36 +0000 Subject: [PATCH] pac update unterbinden --- hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 javax.persistence.Query; 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 @@ public class PacModuleImpl extends AbstractModuleImpl { admin.setUserId(nUID); return super.add(newEntity); } + + @Override + public AbstractEntity update(AbstractEntity existingEntity) + throws HSAdminException { + throw new AuthorisationException(getLoginUser(), "update", existingEntity); + } }