Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
What's the current alternative to umbraco.cms.businesslogic.web.Access.GetAccessingMembershipRoles? Because umbraco 7.6 highlights it as obsolete and tells to use IPublicAccessService
I was unable to find out how to use it though, all I got to was
IContent content = GetById(id);
Attempt<PublicAccessEntry> access = _publicAccessService.IsProtected(content);
which doesn't have any information about the current page roles.
Please see my stackoverflow answer here to see how you can do it.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted