Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Graeme W 113 posts 289 karma points
    Aug 12, 2016 @ 09:40
    Graeme W
    0

    Intermittent Error with Code testing if page is protected

    Hello

    I have a strange, intermittent problem with just one page on my website. The page is not protected with MediaProtect. It starts crashing on the line of code that checks if the page is protected. However just opening up the page in the back office seems to clear it. Has anyone come across anything like this before?

    We are using Umbraco v 6.16 and Media Proteenter image description herect v1.6

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Aug 15, 2016 @ 06:54
    Richard Soeteman
    0

    Hi,

    Umbraco.Isprotected is not a call to mediaprotect library. Add a reference to MediaProtect.library and use MediaProtect.Library.IsProtected.

    Hope this helps.

    Best,

    Richard

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Nov 03, 2016 @ 16:37
    Richard Soeteman
    0

    Hi,

    I have just released V2 and that comes with an extension method where you can say:

    @Umbraco.IsProtected(node id)
    
Please Sign in or register to post replies

Write your reply to:

Draft