I have this code:
SPWeb web = SPContext.Current.Web;
string dummy = String.Empty;
SPWeb subwebByName = web.Webs["Example"];
dummy = subwebByName.Name;
Guid subwebId = new Guid("{5fad4b3b-3124-47d1-b268-86e322e6f2d1}");
SPWeb subwebById = web.Webs[subwebId];
dummy = subwebById.Name;
If I run this code under a user who is in the owner group it works fine.
But if I have a user who is in the visitor group the line web.Webs[subwebId] generates a ThreadAbortException and I get redirected to a page that says "Error: Access denied". The access by name works.
So why does SPWebCollection[Guid] needs more permissions than SPWebCollection[string]? And where is this documented? ;)
