Copied to clipboard

Flag this post as spam?

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


  • Connie DeCinko 95 posts 248 karma points
    Sep 05, 2019 @ 21:11
    Connie DeCinko
    0

    Does member have access to this content?

    I am able to use...

    @if (Members.IsLoggedIn())
    

    to determine if the Member is logged in, which works great for basic hide/show of global elements. Now, I need to dig one level deeper. I need to hide components (uSkinned components) which are just a content node below the current page, unless the Member is authorized to view that component.

    First, is there a simple command like the one above that will tell me if the Member is authorized to view the page?

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Sep 05, 2019 @ 22:06
    Alex Skrypnyk
    0

    Hi Connie

    Did you try to use "Public access" feature in Umbraco backend?

    Try to press the right button on the node and use "Public access".

    Thanks,

    Alex

  • Connie DeCinko 95 posts 248 karma points
    Sep 05, 2019 @ 22:14
    Connie DeCinko
    0

    I have. I assigned the roles there. Problem is, uSkinned tells me that components are not treated like pages so they ignore the public access settings. I have to figure out a way to add that in.

Please Sign in or register to post replies

Write your reply to:

Draft