pac update unterbinden
This commit is contained in:
parent
68f5d00edf
commit
064001b480
@ -10,6 +10,7 @@ import javax.persistence.Query;
|
|||||||
|
|
||||||
import de.hsadmin.core.model.AbstractEntity;
|
import de.hsadmin.core.model.AbstractEntity;
|
||||||
import de.hsadmin.core.model.AbstractModuleImpl;
|
import de.hsadmin.core.model.AbstractModuleImpl;
|
||||||
|
import de.hsadmin.core.model.AuthorisationException;
|
||||||
import de.hsadmin.core.model.HSAdminException;
|
import de.hsadmin.core.model.HSAdminException;
|
||||||
import de.hsadmin.core.util.TextUtil;
|
import de.hsadmin.core.util.TextUtil;
|
||||||
import de.hsadmin.mods.cust.Contact;
|
import de.hsadmin.mods.cust.Contact;
|
||||||
@ -97,5 +98,11 @@ public class PacModuleImpl extends AbstractModuleImpl {
|
|||||||
admin.setUserId(nUID);
|
admin.setUserId(nUID);
|
||||||
return super.add(newEntity);
|
return super.add(newEntity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AbstractEntity update(AbstractEntity existingEntity)
|
||||||
|
throws HSAdminException {
|
||||||
|
throw new AuthorisationException(getLoginUser(), "update", existingEntity);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user