I was trying to create a Custom Search Security Trimmer using ISecurityTrimmer2 of SharePoint . While I was able to get it working, I am struck as I am not able to get the reference of the Current SPSite inside the CheckAccess method. SPContext and HTTPContext is null. Any idea how do I get it ?
There was a elevated code present in master page that caused this context to be always. It was not normal SPSecurity.RunWith... Stuff but old school method so that context was always there , it took a while to figure out and I had opened a MS Ticket as well. Finally I figured it out as code was working fine in a simple sample.