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
umbraco.cms.businesslogic.web.Access.GetAccessingMembershipRoles
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:
Upload image
Image will be uploaded when post is submitted
Get roles of page with role based protection
What's the current alternative to
umbraco.cms.businesslogic.web.Access.GetAccessingMembershipRoles
? Because umbraco 7.6 highlights it as obsolete and tells to useIPublicAccessService
I was unable to find out how to use it though, all I got to was
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...