I am trying to programmatically add a list item to a SharePoint list. The code works fine when executed by a user with contribute permissions, but does not work when a user has view only. Funny thing is, i can debug through the same code with both users and it does not seem to fail on the user with read only.

I only want users to be able to add items to the list (which has a workflow to approve before they are visible) so giving the users contribute permissions will not work.

I tried running with elevated privileges but that did not work.

Is there a permissions setting to only allow add item ot list, or is there a way to programmatically bypass this issue?