I have to build a simple full trusted SharePoint Solution with a webpart. When a user clicks a button in this webpart, I want to change some data in a list, to which he has only read-only permissions. However, when I try to do it, SharePoint gives me a page with a message: "User access denied". When I try the same scenario with a user who has a write access to that list, everything works.
My question is, why does full trusted SharePoint solution does not have an access to write to a SharePoint list when the user does not and vice versa? Is there any permission setting I need to set for that solution?
I am using SSOM, something like this: https://www.tutorialspoint.com/sharepoint/sharepoint_server_object_model.htm
Thank you for your ideas.