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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.