Ok, I'm probably stupid, but I just can't figure this one out neither using reflector or google. How do I check access rights to a page for a specific user?
The ACL.QueryDistinctAccess accepts an IPrincipal object, but how can I get one like that? If I was using the currently logged in user I would use Page.User to find the IPrincipal, but now I need to go from an EPiServerProfile object. I can get the user name, a MembershipUser object etc. from that, but I can't find a path to IPrincipal. Or can I use a different way than ACL.QueryDistinctAccess?
Looks like it would do the trick, I'll try it. Thanks!