0
votes
1answer
98 views

SPWeb permissions inside RunWithElevatedPrivileges

Please consider following scenario: public override void ItemUpdated(SPItemEventProperties properties) { SPSecurity.RunWithElevatedPrivileges(delegate() { SPWeb web1 = properties.Web; ...
1
vote
2answers
114 views

Getting the logged in user given the SPWeb, regardless of elevated priveleges

I have a requirement to be able to always get the logged in user. The object the calling process is going to pass is the spweb. As this is legacy code, I cannot change what the calling processes ...
5
votes
3answers
4k views

How to run with elevated privileges in application page?

I want to get a list item that the current user does not have access to but I need to get it in code. When I use SPSecurity.RunWithElevatedPrivileges that does not work. It's because I'm using the ...