You can do that with the Library methods. assuming you use Razor add a reference to MediaProtect.Library and then use
the Library.HasAccess method (which needs the node id and the node path)to check if the user has access to the media item. If you need more help please provide the snippet you want to have the check in. Then I can the method call in that snippet.
Is it possible to hide protected items? Instead of showing the login form?
Hi everybody.
On the frontend there's a list of PDF files from the Media section. Users should be able to see only the files which they have access to.
How do I do that?
Hi Ivan,
You can do that with the Library methods. assuming you use Razor add a reference to MediaProtect.Library and then use
the Library.HasAccess method (which needs the node id and the node path)to check if the user has access to the media item. If you need more help please provide the snippet you want to have the check in. Then I can the method call in that snippet.
Best,
Richard
Hi Richard.
Thanks. I think,this is it. Will let you know, if that doesn't work out, but I think it should.
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.