pac update unterbinden

This commit is contained in:
Peter Hormanns 2011-05-20 15:59:36 +00:00
parent 68f5d00edf
commit 064001b480

View File

@ -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;
@ -98,4 +99,10 @@ public class PacModuleImpl extends AbstractModuleImpl {
return super.add(newEntity);
}
@Override
public AbstractEntity update(AbstractEntity existingEntity)
throws HSAdminException {
throw new AuthorisationException(getLoginUser(), "update", existingEntity);
}
}