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;
@ -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);
}
}