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
Is there a way of checking if a member has access to a page by node id rather than path?
node id
We've got a set of node ids that I'd rather validate than converting to IPublishedContent just to get the path for which seems a little inefficient.
IPublishedContent
It's basically a replacement to Umbraco.IsProtected(nodeId, path)
Umbraco.IsProtected(nodeId, path)
Thanks in advance.
Hi Tim,
Can you use the MemberHasAccess method perhaps?
https://our.umbraco.org/documentation/reference/querying/umbracohelper/#memberhasaccessint-nodeid-string-path
Hope this helps,
/Dennis
Thanks, sadly that's obsolete though in the latest build :)
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
Check access to page based on node id
Is there a way of checking if a member has access to a page by
node id
rather than path?We've got a set of node ids that I'd rather validate than converting to
IPublishedContent
just to get the path for which seems a little inefficient.It's basically a replacement to
Umbraco.IsProtected(nodeId, path)
Thanks in advance.
Hi Tim,
Can you use the MemberHasAccess method perhaps?
https://our.umbraco.org/documentation/reference/querying/umbracohelper/#memberhasaccessint-nodeid-string-path
Hope this helps,
/Dennis
Thanks, sadly that's obsolete though in the latest build :)
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.