Hi all,
According to the SDK, the DataFactory.GetChildren(PageReference) method should return 'Children of pageLink that the user has at least Read access to.'
However, it actually returns all child pages, even unpublished pages and pages that the user don't have read access to. What is the correct behaviour of this method? Returning all child pages or returning those that the current user can read (SDK should be updated if this is the case)?
Thanks,
Christoffer
GetChildren() will NOT filter result on access
* EPiServer lists will filter for you
* Use FilerAccess or FilterForVisitor to filter when binding to asp lists.
PageDataCollection pages = GetChildren(PageReference.StartPage);
EPiServer.Filters.FilterAccess access = new EPiServer.Filters.FilterAccess();
access.Filter(pages);
repeater.DataSource = pages;
repeater.DataBind();