I made a custom control for top navigation which iterate through all site within site collection.
But I get access denied error for user which is not an admin (has read access).
I try to use
SPSite oSiteCollection = SPContext.Current.Site;
using (SPSite oSite = new SPSite(oSiteCollection.Url))
SPWebCollection collWebsite = oSite.AllWebs;
//my code to render the custom control
but no luck.
I found that we can also using SPUserToken, I made it like bel
View Complete Post